http://qs321.pair.com?node_id=732025


in reply to localtime - make the date format different?

For this I regularly have a sub which formats the date and time like this:

Z:\>perl -e "@t=localtime(); printf('%s-%02d-%02d %02d:%02d:%02d', $t[ +5]+1900, $t[4]+1, @t[3,2,1,0])" 2008-12-22 11:13:35