|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-23 14:14 UTC] derick@php.net
[2009-01-15 08:39 UTC] for-bugs at hnw dot jp
[2009-05-11 08:50 UTC] jani@php.net
[2009-09-15 06:28 UTC] svn@php.net
[2009-09-15 06:52 UTC] torben@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 07:00:01 2025 UTC |
Description: ------------ With PHP 5.2.8 or 5.3.0alpha3, 'next Monday' and '+1 Monday' is diffrenet. On Monday, 'next Monday' seems the same day. However, '+1 Monday' means 1 week later. 'next day' and '+1 day' performs the same behavior, so it is natural to me that 'next Monday' and '+1 Monday' is the same meanings. In addition, my GNU date command never accept '+1 Monday' and 'next Monday' on Monday means the same day. So, I cannot tell what is the right behavior. I only report inconsistency. Reproduce code: --------------- <?php var_dump(date("Y-m-d",strtotime("+1 Monday 2008-12-01"))); var_dump(date("Y-m-d",strtotime("next Monday 2008-12-01"))); Actual result: -------------- string(10) "2008-12-01" string(10) "2008-12-08"