|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-29 17:27 UTC] degeberg@php.net
-Status: Open
+Status: Bogus
[2010-07-29 17:27 UTC] degeberg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 06:00:01 2025 UTC |
Description: ------------ Hai, While i excuting the below script i got unexpected result. <?php print date("d-m-Y", mktime(0, 0, 0, 7, 1, 2038)); ?> i got the output is 01-01-1970. i know the problem in php core. php date funnction changelog: The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows). how we resolve this problem.