|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-31 08:21 UTC] aharvey@php.net
[2012-08-31 08:21 UTC] aharvey@php.net
-Status: Open
+Status: Not a bug
-Type: Documentation Problem
+Type: Bug
-Package: CGI/CLI related
+Package: Date/time related
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 13:00:01 2025 UTC |
Description: ------------ --- intro today is 2012-08-31 echo date("Y-m-d",strtotime("- 1 months")); =====>2012-07-31 echo date("Y-m-d",strtotime("- 2 months")); =====>2012-07-01 (why) echo date("Y-m-d",strtotime("- 3 months")); =====>2012-05-31 From manual page: http://www.php.net/function.strtotime#refsect1- function.strtotime-description ---