in reply to Re: Time local
in thread Time local

I put some debug strings and the date appears as follows: adate is 2007-01-01, atime is 12:00:00 , i had the wrong format before... I will try out the above. Is the --$month right to use?

Replies are listed 'Best First'.
Re^3: Time local
by ikegami (Patriarch) on Dec 21, 2006 at 18:27 UTC
    I'd use $month-1, since there's no reason to modify $month in the process. The subtraction is required since timelocal expects a 0-based month (Jan = 0).