Jump to content


This topic is now archived and is closed to further replies.


Representing distant past/future datetimes...

Recommended Posts


I'm currently working on a PHP/MySQL app that needs to be able to handle arbitrary dates, possibly WAY in the past or future - beyond the 1901-2038 of 32-bit unix time and the 1901-2155 of MySQL.

I know that I can store the dates as strings and solve my problem that way, but then I miss out on the existing datetime functions.

Does anyone know of a workaround to this, e.g. forcing PHP to use 64-bit timestamps?, etc.  Or am I stuck with storing as strings?


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.