|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-31 02:06 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Description: ------------ if call function strtotime("last month") or ("-1 month") at Mar. 30th 2004, it will return 3/1/04. ("-2 month") produce correct output. Reproduce code: --------------- <? // run it at 3/30 or 3/31 $date=strtotime("-1 month"); echo strftime('%D',$date); $date=strtotime("this month"); echo strftime('%D',$date); ?>