List Info

Thread: note 63781 added to function.mktime




note 63781 added to function.mktime
user name
2006-03-30 15:06:26
In response to Bill:

> B: date("Y-m-d H:i:s", mktime(5, 47, 23, 2,
30, 2006)) returns 2006-03-02 05:47:23 = incorrect!

The above behaviour is correct. Read the manual again.
February (month=2) has 28 days, hence 30th day of 2nd month
is converted to 2nd day of 3rd month.
----
Server IP: 66.207.199.35
Probable Submitter: 206.186.59.97
----
X-Spam-Status: No, hits=3.1 required=5.0
tests=DATE_MISSING,FROM_NO_LOWER 
	autolearn=no version=2.64
----
Manual Page -- http
://www.php.net/manual/en/function.mktime.php
Edit        -- http://master.p
hp.net/note/edit/63781
Del: integrated  -- ht
tp://master.php.net/note/delete/63781/integrated
Del: useless     -- http:
//master.php.net/note/delete/63781/useless
Del: bad code    -- http
://master.php.net/note/delete/63781/bad+code
Del: spam        -- http://m
aster.php.net/note/delete/63781/spam
Del: non-english -- h
ttp://master.php.net/note/delete/63781/non-english
Del: in docs     -- http:
//master.php.net/note/delete/63781/in+docs
Del: other reasons-- http://master
.php.net/note/delete/63781
Reject      -- http://master
.php.net/note/reject/63781
Search      -- http://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

note 63781 deleted from function.mktime by bjori
user name
2006-03-30 16:13:43
Note Submitter: Mike
Reason: integrated

----

In response to Bill:

> B: date("Y-m-d H:i:s", mktime(5, 47, 23, 2,
30, 2006)) returns 2006-03-02 05:47:23 = incorrect!

The above behaviour is correct. Read the manual again.
February (month=2) has 28 days, hence 30th day of 2nd month
is converted to 2nd day of 3rd month.

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )