Re: date/mktime bug?
| From: | Michael Kimsal | Date: | Thu, 17 Aug 2000 15:24:30 +0000 |
| Subject: | Re: date/mktime bug? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12258@lists.php.net to get a copy of this message | ||
OK... our fault. The manual DOES state that only certain
years are valid. Sorry for the disturbance.
Everybody just go home - there's nothing here to see...
Move along...
Michael Kimsal wrote:
> Well, I see PART of my problem - sorry, we jumped the gun a bit.
>
> Obviously, the year '0' ain't right.
>
> <? echo date("m-d-Y",mktime(0,0,0,1,1,1999)); ?>
>
> seems to work.
>
> Still, should
>
> <? echo date("m-d-Y",mktime(0,0,0,0,0,0)); ?>
>
> return 11-30-1999 ?
>
> Michael Kimsal wrote:
>
> > <? echo date("m-d-Y",mktime(0,0,0,0,0,0)); ?>
> >
> > This returns '11-30-1999'. That doesn't seem to make sense -
> > shouldn't it be
> > January 1, 1970 or something like that?
> >
> > php 4.01pl2 (with optimizer), redhat 6.1
> >
> > ==========================
> > Michael Kimsal
> > http://www.tapinternet.com
> > 734-480-9961
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> ==========================
> Michael Kimsal
> http://www.tapinternet.com
> 734-480-9961
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
==========================
Michael Kimsal
http://www.tapinternet.com
734-480-9961