What operating system are you using? Support for the %P format code isn't universal. Take a look at the documentation for "strftime" on your system.
You could try using %p instead. Or, alternatively, just use the 24 hour clock (%k in place of %l in the output format string) - that's far more readable in my opinion.
Personally, I'd use the DateTime modules to solve this problem.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^3: changing time date format.
by davorg
in thread changing time date format.
by pglinx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |