Re: I have a mktime problem

From: Date: Thu, 30 Mar 2006 21:41:14 +0000
Subject: Re: I have a mktime problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232951@lists.php.net to get a copy of this message
Every missing argument is set to current value, so now you have mktime(0,0,0,2,30,2006), that is March, the 2nd. Brona Jay Blanchard wrote:
I'm having an weird issues with the date and mktime function thing getting unexpected results, and I was wondering if y'all could help clue me in as to what is wrong. Here's the code I'm running:
        echo date(M, mktime(0,0,0,2)) . "\n"; Where the 2 is the month.
Now when I put in the number 1 in the month slot I get Jan When I put in 3 I get Mar When I put in 4 I get Apr Etc. However, when I put in 2 I get Mar and not Feb. What's up with that? What am I doing wrong here? Should I get some sleep?


« previous php.general (#232951) next »