note 73644 added to function.mktime
| From: | pahan76 at rambler dot ru | Date: | Mon, 05 Mar 2007 19:22:17 +0000 |
| Subject: | note 73644 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124115@lists.php.net to get a copy of this message | ||
Very surprising thing:
I tried this:
echo date("z",mktime(12,0,0,7,2,2007,0));
to get number of day for 7st Feb 2007 and I got the answer 182 which is unlikely to be 7st Feb but
looks like 2nd Jul.
I wrote
echo date("z",mktime(12,0,0,2,7,2007,0));
and it returned 37 which is OK.
In the manual for mktime written that parameter
s order is
hour,minute,second,month,day,year,DST but in my configuration it appeared to be
hour,minute,second,day,month,year,DST! Ive PHP 4.3.9.
Were there any changes to PHP or maybe some configuration options that may cause such a behaivor?
----
Server IP: 195.222.164.18
Probable Submitter: 87.255.1.49
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- https://master.php.net/note/edit/73644
Del: integrated -- https://master.php.net/note/delete/73644/integrated
Del: useless -- https://master.php.net/note/delete/73644/useless
Del: bad code -- https://master.php.net/note/delete/73644/bad+code
Del: spam -- https://master.php.net/note/delete/73644/spam
Del: non-english -- https://master.php.net/note/delete/73644/non-english
Del: in docs -- https://master.php.net/note/delete/73644/in+docs
Del: other reasons-- https://master.php.net/note/delete/73644
Reject -- https://master.php.net/note/reject/73644
Search -- https://master.php.net/manage/user-notes.php