Re: Time calculation after UNIX
| From: | Shane Wright | Date: | Wed, 16 Jan 2002 14:25:09 +0000 |
| Subject: | Re: Time calculation after UNIX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80704@lists.php.net to get a copy of this message | ||
Use 64bit integers! They'll count up to a much higher number and will last
way beyond 2038.
In the database, set the correct type (INT8 in PostgreSQL, dont know about
the others). Dont worry about PHP as I'm sure there'll be a few newer
versions supporting wider int formats before then (if it doesn't already??)
--
Shane
On Wednesday 16 Jan 2002 9:33 am, Olav Drageset wrote:
> Hi
>
> I have a database that is supposed to last more than 30 years
>
> Could someone advice me how to calculate (add and subtract) time in a maner
> that willl be correct after 2030 when Unix Time stop working?
>
> ragards
>
> Olav@Drageset.net