Re: date/mktime bug?

From: Date: Thu, 17 Aug 2000 15:09:53 +0000
Subject: Re: date/mktime bug?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-12249@lists.php.net to get a copy of this message
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

« previous php.general (#12249) next »