You should check out POSIX::strftime, too. :)
use POSIX qw(strftime); print "mm/dd/yyyy:\t". strftime('%d/%m/%Y', localtime time) . $/; print "yyyymmdd_hhmm:\t". strftime('%Y%m%d_%H%M', localtime time) . $/ +;
These also have the benefit of zero-padding the date and time components, so they will sort correctly if used in a filename (for example).
In reply to Re^3: Local Date Format
by meredith
in thread Local Date Format
by SmokeyB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |