RE: [PHP] Sniping on the List
| From: | Steven Staples | Date: | Tue, 15 Nov 2011 19:54:30 +0000 |
| Subject: | RE: [PHP] Sniping on the List | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315689@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Tamara Temple [mailto:tamouse.lists@tamaratemple.com]
> Sent: November 15, 2011 1:33 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Sniping on the List
>
> On Tue, 15 Nov 2011 12:24:17 -0600, tamouse mailing lists
> <tamouse.lists@gmail.com> sent:
> > On Tue, Nov 15, 2011 at 12:12 PM, Tedd Sperling
> > <tedd.sperling@gmail.com> wrote:
> >> PS: I know it's not Friday, but this question came up in class
> >> yesterday and I thought maybe all of you might like to guess why
> >> null is Wednesday?
> >
> > Wait.. What??
> >
> > $ php -r 'echo date("l",NULL),"\n";'
> > Wednesday
> >
> > Cos:
> >
> > $ php -r 'echo date("r",NULL),"\n";'
> > Wed, 31 Dec 1969 18:00:00 -0600
> >
> > (Personally, I would have thought Thursday should be NULL, but that's
> > just me. And Thursday.)
>
> Actually, It *is* Thursday if you use UTC:
>
> $ TZ=UTC php -r 'echo date("r",NULL),"\n";'
> Thu, 01 Jan 1970 00:00:00 +0000
>
> :P
Perfect example of Tedd's last comment about being proven wrong (even though TECHNICALLY it
isn't)
Good job :)
Steven Staples
Web Application Programmer