Reading through the PHP manual about timestamps, I came across this phrase
On windows this range is limited from 01-01-1970 to 19-01-2038.
I have a number of functions that reformat dates stored in MySQL format (YYYY-MM-DD) - for instance
$date = date('n/j/Y', strtotime($myrow["date"]));
When I feed it a date in 1902 or later it seems to work fine. If I feed it a date in 1901 it changes it to December 31, 1969. I'm running a Mac (OS X), but I wonder what my Windows users are encountering?
I'm surprised this seemingly core component is so limited in the date range it will represent. Are there some standard workarounds for dealing with broader date ranges, other than just checking to make sure all functions used don't use timestamps?
I'm not seeking an answer to a specific question here, just a better understanding of how other programmers deal with this issue. My current application fortunately is unlikely to need dates before 1970, but I have no doubt I will have need for such in the future.
Thanks!