Just another Perl shrine | |
PerlMonks |
Re^3: epoch timeby ikegami (Patriarch) |
on Jan 31, 2007 at 17:26 UTC ( [id://597577]=note: print w/replies, xml ) | Need Help?? |
It accepts both.
I like $m having a natural value like $d (1..~31) and $y (19xx) do. I always follow localtime and gmtime with $m++; $y += 1900;, and I always specify $m-1 for timelocal and timegm. Not seeing $m-1 raises alarms in my head.
In Section
Seekers of Perl Wisdom
|
|