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
.
.
.
20 5/17/2033 8:33:20 pm
.
.
.
0x7fff 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', 0x8000), \n?
should tell you why
Feel free to try different numbers in decimal and hex in place of
0x8000 and you will learn something.
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php