Entry
i'm working with mktime in a calendar but when i do an mktime(0,0,0,1,1,2040) i get this -3662
Nov 13th, 2005 03:34
Matthew Wilkinson, criso vil,
This is because 2040 is outside of the range of the UNIX Timestamp
format. A UNIX Timestamp extends from about January 1st 1901 to sometime
in 2038. These dates represent the valid ranges for a singed 32 bit
integer. When you attempted to use 2040, the integer just went past the
end of it's range and started counting from some undefined point in the
negative range. This is a limitation of PHP 4 and the UNIX Timestamp
format. In PHP 5, I believe, they hae overcome this problem and you can
use any date in the past or future.