Re: Date Issue

From: Date: Mon, 31 Mar 2008 20:22:22 +0000
Subject: Re: Date Issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272354@lists.php.net to get a copy of this message
On Mon, Mar 31, 2008 at 4:15 PM, <admin@buskirkgraphics.com> wrote: > I tried that a big no go. > Seems if I do a +1 i get 2 months from now and a -1 gives me the current month. Like I said, mktime makes corrections for otherwise invalid dates. Today is March 31. Moving the month number back by one (-1) creates a timestamp for February 31, which gets corrected to become March 2 (March 3 in non-leap years). Moving the month number ahead by one (+1) creates a timestamp for April 31 gets corrected to become May 1. Andrew

« previous php.general (#272354) next »