List Info

Thread: note 63784 deleted from function.mktime by bjori




note 63784 deleted from function.mktime by bjori
user name
2006-03-30 16:18:17
Note Submitter: WildOranges
Reason: integrated

----

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!

-- 
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 )