Re: Range mktime?

From: Date: Thu, 18 May 2006 22:58:38 +0000
Subject: Re: Range mktime?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236449@lists.php.net to get a copy of this message
On Thu, May 18, 2006 6:30 am, Gustav Wiberg wrote: > I wondew which range the mktime has? (in digits) > In my case it always start with 1. > something like > 1147951344 > > Is this ALWAYS TRUE (that it would start with 1) No. 0 1/1/1970 midnight 1 1/1/1970 one second after midnight 2 1/1/1970 two seconds after midnight 3 1/1/1970 three seconds after midnight . . 60 1/1/1970 one minute after midnight 120 1/1/1970 two minutes after midnight 240 1/1/1970 four minutes after midnight . . . 1147992736 5/18/2006 about 4 PM or so, give or take . . . 2000000000 5/17/2033 8:33:20 pm . . . 0x7fffffff 1/18/2038 7:14:07 pm, the end of time on 32-bit hardware <?php echo date('m/d/Y h:i:s a', 0x80000000), "\n"?> should tell you why Feel free to try different numbers in decimal and hex in place of 0x80000000 and you will learn something. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#236449) next »