Welcome to the Monastery | |
PerlMonks |
Re^3: A date calculationby jrsimmon (Hermit) |
on Dec 18, 2007 at 22:30 UTC ( [id://657756]=note: print w/replies, xml ) | Need Help?? |
13*24*60*60 is (days * hours/day * minutes/hour * seconds/min). So your script is taking the current date/time, adding 13 days to it, and then printing the two digit month and year of that date/time. Since 13 days from now is still December 2007, you're getting 0712 (instead of the 0801 you evidently expected).
In Section
Seekers of Perl Wisdom
|
|