Jump to content

Representing distant past/future datetimes...


bqallover

Recommended Posts

Hello!

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?

Thanks.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.