&POSIX::strftime has all you want:
use POSIX qw( strftime ); print strftime( '%Y-%m-%d %T', localtime);
See 'man 2 strftime' for all the format codes available. POSIX man page tells about portability and perlish concerns.
Update: Shortened the format with %T; was %H:%M:%S.
After Compline,
Zaxo
In reply to Re: Shorter Formating?
by Zaxo
in thread Shorter Formating?
by talwyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |