ID:               10160
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Feature/Change Request
 Operating System: RedHat Linux
 PHP Version:      4.0.4pl1
 New Comment:

use a c library with a 64-bit time_t.


Previous Comments:
------------------------------------------------------------------------

[2001-04-04 11:00:07] [EMAIL PROTECTED]

As you know, most of PHP's date and time functions use the unix
timestamp, which wont go past Tuesday 19 January 2038 05:11,
numberically represented by 2147483648 (ie 30 bits) 

Surely PHP can get clever and work around this? (ie allow bigger values
which will translate back and forth properly up to the year 9999?)  
Otherwise we will all find outselves with a Y2K-like date nightmare!

eg:  currently:  echo mktime(0,0,0,1,1,2099);  outputs -1
and putting any number past 2147483648 into date() wont give you
anything past Tuesday 19 January 2038 05:11

Thanks!
regards,
Keith




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=10160&edit=1

Reply via email to