Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Creating a string for a date stampby dthacker (Deacon) |
on Sep 20, 2001 at 00:33 UTC ( [id://113467]=perlquestion: print w/replies, xml ) | Need Help?? |
dthacker has asked for the wisdom of the Perl Monks concerning the following question:
I've have a program that copies files from a log directory to an archive directory and appends a date stamp to the end of the filename. After looking at some other code locally I used this sub to create the datestamp:
Unfortunately this is giving me YYYYMDDHHMM instead of YYYYMMDDHHMM. Is there a more effective way of getting the string I want than padding the output of Today_and_Now?
Back to
Seekers of Perl Wisdom
|
|