List Info

Thread: note 63784 added to function.mktime




note 63784 added to function.mktime
user name
2006-03-30 16:16:51
In regards to Bill's note.

It shows wrong because there's not 30 days in Febuary.
It's adding the extra 2 days past 28th February which would
be 2006-03-02
Try the 28th:-

date("Y-m-d H:i:s", mktime(5, 47, 23, 1, 28,
2006))  returns 2006-01-28 05:47:23 = correct!

date("Y-m-d H:i:s", mktime(5, 47, 23, 2, 28,
2006))  returns 2006-02-28 05:47:23 = correct!

date("Y-m-d H:i:s", mktime(5, 47, 23, 3, 28,
2006))  returns 2006-03-28 05:47:23 = correct!

mktime() does work!
----
Server IP: 85.116.0.130
Probable Submitter: 217.34.50.196
----
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/63784
Del: integrated  -- ht
tp://master.php.net/note/delete/63784/integrated
Del: useless     -- http:
//master.php.net/note/delete/63784/useless
Del: bad code    -- http
://master.php.net/note/delete/63784/bad+code
Del: spam        -- http://m
aster.php.net/note/delete/63784/spam
Del: non-english -- h
ttp://master.php.net/note/delete/63784/non-english
Del: in docs     -- http:
//master.php.net/note/delete/63784/in+docs
Del: other reasons-- http://master
.php.net/note/delete/63784
Reject      -- http://master
.php.net/note/reject/63784
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

[1]

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