|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-30 10:38 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2013-09-30 10:38 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
Description: ------------ Hello, Im trying to get with date and mktime one year back from now and I think function return me wrong values. Test script: --------------- echo "Date Y-M\n"; echo date("Y-m"); $r = date("Y-m", mktime(0, 0, 0, 1, date("m") - 12, date("Y"))); echo "\n", $r,"\n"; Expected result: ---------------- 2013-09 2012-09 Actual result: -------------- 2013-09 2012-12