Keep It Simple, Stupid | |
PerlMonks |
Re^2: epoch timeby johngg (Canon) |
on Jan 31, 2007 at 17:10 UTC ( [id://597570]=note: print w/replies, xml ) | Need Help?? |
Also, for this particular application, why not set the hash up with the subtraction by one already done?
Cheers, JohnGG Update: davorg and ikegami have pointed out that timelocal() does accept dates like 2007 without first subtracting 1900, although it does the right thing if you do the subtraction as well. ikegami also explained his excellent reason for doing the month the way he does.
In Section
Seekers of Perl Wisdom
|
|