Re: 9 Months Ago

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: 9 Months Ago
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-181090@lists.php.net to get a copy of this message
On Sun, 21 Mar 2004, Marek Kilimajer wrote: > Jeff Oien wrote: > > When I do this: > > $lastmonth = mktime(0, 0, 0, date("m")-9, date("d"), > > date("Y")); > > this will not work most of the year, if current month is August or less, > the month value will be negative. mktime() can take negative values just fine. -Rasmus

« previous php.general (#181090) next »