Re: Dates before 1970

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

 



At 6:43 PM -0500 4/17/06, Richard Lynch wrote:
Call me crazy, but I think that:

$time = 0xffffffff; //largest INT possible
echo date('m/d/Y h:i:s a', $time);

would be very revealing.

Hmmmm.

Is: 12/31/1969 06:59:59 pm

Yes, it is -- I remember what I was doing then. It was six months after I got out of the US Army.

And,

$time = -0xffffffff; //smallest INT possible
echo date('m/d/Y h:i:s a', $time);

Is: 12/13/1901 03:45:52 pm

Close to when I was born. :-)

Whereas,

$time = 0;
echo date('m/d/Y h:i:s a', $time);

Is: 12/31/1969 07:00:00 pm

But, what point is there in all this?

tedd


--
--------------------------------------------------------------------------------
http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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