Do you know where your variables are? | |
PerlMonks |
Re^5: Time::Piece strangeness take twoby spiritway (Vicar) |
on Dec 14, 2005 at 05:04 UTC ( [id://516521]=note: print w/replies, xml ) | Need Help?? |
I don't see how you arrive at this conclusion. When I modify the input dates to read 200 and 205 respectively, the program crashes. When I modify the dates to be 2000 and 2005 respectively, the program completes properly. This program shows how the year is handled:
The output of that is That is as expected. The documentation for Time::Piece shows these two methods:
I think it's clear that $t->year is simply the "zero" based year as we know them, and the $t->_year method is the year as we get it from the localtime function.
In Section
Seekers of Perl Wisdom
|
|