note 70839 deleted from function.strtotime by derick

From: Date: Sun, 08 Apr 2007 12:59:05 +0000
Subject: note 70839 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125207@lists.php.net to get a copy of this message
Note Submitter: pzi42 at gmx dot de ---- simple workaround for the problem of day 31 function incmonth ($increment,$now=-1) { $now = ($now == -1)? $now = time() : $now; if (date('m',$now) <> date('m',$now+86400)) $now -= 86400; return strtotime ($increment . ' month',$now); }

« previous php.notes (#125207) next »