C
CesarDBA
Hello to all,
I am trying to execute this peace of code in WindowsXP using
ActiveState Perl 5.8.4:
use POSIX 'strftime';
my($format);
$format = '%r %A %B %d %Y';
print strftime($format, localtime), "\n";
$format = '%I:%M:%S %p %A %B %d %Y';
print strftime($format, localtime), "\n";
This is the result:
Thursday February 09 2006
07:46:01 AM Thursday February 09 2006
The format "%r" is not work. Any thoughts?
Regards.
Antonio Cesar Rosa
I am trying to execute this peace of code in WindowsXP using
ActiveState Perl 5.8.4:
use POSIX 'strftime';
my($format);
$format = '%r %A %B %d %Y';
print strftime($format, localtime), "\n";
$format = '%I:%M:%S %p %A %B %d %Y';
print strftime($format, localtime), "\n";
This is the result:
Thursday February 09 2006
07:46:01 AM Thursday February 09 2006
The format "%r" is not work. Any thoughts?
Regards.
Antonio Cesar Rosa