in reply to Error while using "timelocal ()" function.

Aren't months zero-based (i.e. 0 = January, 8 = September)?
  • Comment on Re: Error while using "timelocal ()" function.

Replies are listed 'Best First'.
Re^2: Error while using "timelocal ()" function.
by ikegami (Patriarch) on Aug 31, 2011 at 21:01 UTC
    Correct: "the month is the number of months since January (0..11). This is consistent with the values returned from localtime() and gmtime()"
Re^2: Error while using "timelocal ()" function.
by mmartin (Monk) on Sep 01, 2011 at 15:38 UTC
    Thanks for the replies.

    I did not think of that (months being zero-based). I'll change it up and see what happens.


    I'll post back as soon as I give it a try.


    Thanks, Matt