RE: Date Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Craige Leeder [mailto:cleeder@xxxxxxxxx]
> Sent: Monday, November 17, 2008 4:50 PM
> To: Boyd, Todd M.
> Cc: admin@xxxxxxxxxxxxxxxxxxx; php-general@xxxxxxxxxxxxx
> Subject: Re:  Date Issue
> 
> Boyd, Todd M. wrote:
> >> Are you sure this isn't like Javascript's "getMonth" function? Its
> index may begin at 0, making "day 0" the "first day" of the year.
> >>
> Hmm, though I know us programmers love to start counting at zero, why
> would something as static as a date start counting at zero? I would
> have
> imagined something like that would start at 1.

I dunno. Threw me for a hell of a loop (no pun intended) when I first started playing with Javascript dates, though. Year = starts at 1 (not literally, but for all intents and purposes). Day = starts at 1. Month = starts at 0? What?! :)


// Todd


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux