RE: [PHP] Date Issue
| From: | Ashley Sheridan | Date: | Mon, 17 Nov 2008 23:02:35 +0000 |
| Subject: | RE: [PHP] Date Issue | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283406@lists.php.net to get a copy of this message | ||
On Mon, 2008-11-17 at 16:57 -0600, Boyd, Todd M. wrote:
> > -----Original Message-----
> > From: Craige Leeder [mailto:cleeder@gmail.com]
> > Sent: Monday, November 17, 2008 4:50 PM
> > To: Boyd, Todd M.
> > Cc: admin@buskirkgraphics.com; php-general@lists.php.net
> > Subject: Re: [PHP] 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
It makes no sense does it?! I was lucky enough to have an Oreilly book
with me at the time I was learning javascript. Only book of theirs i
wasnt so hot on was an ajax one.
Ash
www.ashleysheridan.co.uk