note 68535 added to function.strtotime

From: Date: Tue, 01 Aug 2006 09:46:17 +0000
Subject: note 68535 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-115404@lists.php.net to get a copy of this message
That's indeed strange behaviour echo strftime("%d-%m-%Y", strtotime("31 july 2006 -1 month")); Gives 01-07-2006, ofcourse just found out yesterday. Really stupid behaviour if you ask me and should be corrected. When I want to substract 1 month I expect it to be 1 month not 30 days. ---- Server IP: 83.137.20.120 Probable Submitter: 81.59.216.61 (proxied: 1.0 UTWSRV01) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- https://master.php.net/note/edit/68535 Del: integrated -- https://master.php.net/note/delete/68535/integrated Del: useless -- https://master.php.net/note/delete/68535/useless Del: bad code -- https://master.php.net/note/delete/68535/bad+code Del: spam -- https://master.php.net/note/delete/68535/spam Del: non-english -- https://master.php.net/note/delete/68535/non-english Del: in docs -- https://master.php.net/note/delete/68535/in+docs Del: other reasons-- https://master.php.net/note/delete/68535 Reject -- https://master.php.net/note/reject/68535 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115404) next »