Please use <code> tags instead of <pre> tags to format your code. That makes it easier for us to see that you're calling Time_to_Date([$time]), which is the mistake here: the square brackets in the Date::Calc documentation in "($year,$month,$day, $hour,$min,$sec) = Time_to_Date([time])" refer to the fact that the time value is optional, not that you should put square brackets around the argument (which makes it an arrayref, which then gets interpreted by Time_to_Date as those strange datetimes you're getting).
In reply to Re: Date::Calc on Windows
by haukex
in thread Date::Calc on Windows
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |