|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-04 23:22 UTC] tony2001@php.net
[2006-05-04 23:48 UTC] ramsessivira at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 12:00:01 2025 UTC |
Description: ------------ For years up to 2038 the mktime instruction does not give back any result Reproduce code: --------------- for($x=2037;$x<2041;$x++){ echo mktime(0,0,0,1,1,$x)." Date: ".date( "M-d-Y",mktime(0,0,0,1,1,$x))."<br>"; } Expected result: ---------------- 2114395200 Date: Jan-01-2037 2145931200 Date: Jan-01-2038 some value Date: Jan-01-2039 some value Date: Jan-01-2040 Actual result: -------------- 2114395200 Date: Jan-01-2037 2145931200 Date: Jan-01-2038 Date: Dec-31-1969 Date: Dec-31-1969