Re: [PHP] handling dates before 1901

2008-02-28 Thread Larry Garfield
I don't know why it would have been working before and now stopped, but take a look at the DateTime class in PHP 5.2. It is designed to use 64-bit dates internally so it should handle a larger date range than humans have existed for. It has both OOP and procedural routines, depending on your p

[PHP] handling dates before 1901

2008-02-28 Thread Gabriel Kuri
I recently migrated some php scripts from a box running php 4.4.4 to php 5.2.5. due to the nature of the data, some of the php scripts require handling dates before 1901. both boxes are 64-bit (original and new), however the new box isn't handling dates properly before 1901 with either the mktime()