This will definitely solve one way but still other is there, How to get that -ve number which starts at 1/1/1900 at 00:00 AM = 0
I need to be able to convert back and forth as there are some calculations to be done on date field, But this is very interesting.. Thx SP On 4/13/06, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Suhas wrote: > > Hello, > > > > I have a project that deals with the date time stamps since 1900 (and > > past), any suggestions about a good class that handles Date Time > > Format before 1970. I really like date() function and want something > > similar. > > date() uses Unix timestamps which on most Unix platforms goes from > -MAX_INT to MAX_INT which means the date range is actually > 12:45:52 12/13/1901 to 07:14:07 01/18/2038. So you might be able to get > away with it. > > You can check it with: > > echo date("h:i:s m/d/Y",-2147483648); > echo date("h:i:s m/d/Y", 2147483647); > > Windows, not being Unix, doesn't understand that the timestamp can be > negative, although I think someone fixed that in PHP 5. In my 11+ years > of PHP I have yet to run PHP on Windows, so I wouldn't know. > > -Rasmus > -- Contact @ Suhas Pharkute. 208 830 8915 (C) 208 429 6943 (H) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php