|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-22 09:23 UTC] derick@php.net
[2008-02-22 09:49 UTC] derick@php.net
[2008-02-22 10:20 UTC] bishillo at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 01:00:01 2025 UTC |
Description: ------------ strtotime() of years >2038 or <1900 does not work on 64 bit platforms, that should not have problems with those dates. The rest of php functions work properly with those extended dates. Reproduce code: --------------- On 64 bit platforms php date functions support greater range of dates. For exampe: <?= date('d-m-Y',time()+31536000000) ?> Returns: 3007-06-25 But strtotime does not work with those improved date ranges: <?= date('Y-m-d',strtotime('3007-06-25')) ?> Returns: 1970-01-01 I understand that output on 32 bit platforms, but on 64 bit should work as the rest of functions, and return a valid 64bit timestamp for dates >2038 or <1900.