#20130 [Bgs]: strtotime return -1 for date more than year 2038
| From: | derick@php.net | Date: | Wed, 30 Oct 2002 06:33:48 +0000 |
| Subject: | #20130 [Bgs]: strtotime return -1 for date more than year 2038 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23685@lists.php.net to get a copy of this message | ||
ID: 20130
Updated by: derick@php.net
Reported By: yahya@titisb.com.my
Status: Bogus
Bug Type: Date/time related
Operating System: windows 98
PHP Version: 4.2.3
New Comment:
Please come up with a good implementation then, which works
cross-platform, for all c libraires... It's not an easy fix, and I feel
we shouldnt even start on this.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-10-30 00:32:13] rjames@yahoo-inc.com
Don't brush off the problem because the underlying C code is short
sighted. Switch to a better date-time structure.
------------------------------------------------------------------------
[2002-10-27 21:00:46] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
unix timestamps are only good till about year 2038.
------------------------------------------------------------------------
[2002-10-27 20:54:19] yahya@titisb.com.my
echo strtotime("2039-01-01");
--it will return -1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20130&edit=1