Jm lists wrote:
Hi members,
I want to get this format of time:
11.07.06 12:00 pm
can you tell me how to get it?(maybe need to be translated from the
'localtime') Thanks.
Is that 11 July or 7 November? Swap the day and month around in the
output format in the program below if you wanted the latter.
HTH,
Rob
use strict;
use warnings;
use DateTime;
print DateTime->now->strftime('%d.%m.%y %I:%M %P');
**OUTPUT
15.11.06 03:55 pm
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>