With POSIX, it would be:
use POSIX; print strftime("%A, %B %d, %Y %H:%M", localtime(time));
The big advantage is that with POSIX you can get day and month name in your language, e.g. for me the output looks like:
Dienstag, Februar 14, 2006 08:43
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
In reply to Re^2: Date format
by strat
in thread Date format
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |