|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-16 21:34 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon May 18 08:00:01 2026 UTC |
Description: ------------ After some incomprehensible bug, I focus on this test: Any explanation ? Reproduce code: --------------- <? $TmpYear = 2005; $TestTs = mktime(0, 0, 0, 1, 2, $TmpYear); echo "<br>Comp : ".strftime("%d %B %G %T", $TestTs); echo "<br>jour : ".strftime("%d", $TestTs); echo "<br>mois : ".strftime("%m", $TestTs); echo "<br>anne : ".strftime("%G", $TestTs); $TestTs = mktime(0, 0, 0, 1, 3, $TmpYear); echo "<br>Comp : ".strftime("%d %B %G %T", $TestTs); echo "<br>jour : ".strftime("%d", $TestTs); echo "<br>mois : ".strftime("%m", $TestTs); echo "<br>anne : ".strftime("%G", $TestTs); ?> Expected result: ---------------- 2005 for both for the year. Actual result: -------------- 2004 for 1rst of january. 2005 for third january. Same problem with 1999