Re: [PHP] Date Issue
- From: aballard@xxxxxxxxx ("Andrew Ballard")
- Date: Mon, 31 Mar 2008 16:22:22 -0400
On Mon, Mar 31, 2008 at 4:15 PM, <admin@xxxxxxxxxxxxxxxxxxx> 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
.
- References:
- Re: [PHP] Date Issue
- From: admin
- Re: [PHP] Date Issue
- Prev by Date: Re: [PHP] Date Issue
- Next by Date: Re: [PHP] Date Issue
- Previous by thread: Re: [PHP] Date Issue
- Next by thread: Re: [PHP] Date Issue
- Index(es):
Relevant Pages
|