note 92778 added to function.getdate
| From: | manuel at osu1 dot php dot net | Date: | Sat, 08 Aug 2009 21:46:44 +0000 |
| Subject: | note 92778 added to function.getdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159217@lists.php.net to get a copy of this message | ||
I believe that the functions by eric dot schultz and Anonymous on 16-Oct-2008 02:01 will return
values with leading zeroes for minutes and seconds, given timestamps with seconds < 10 or minutes
< 10. This will lead to unexpected results if, for example, those values are passed to mktime()
or gmmktime().
I believe the earlier function, by chris AT cmbuckley DOT co DOT uk, is correct in this regard.
----
Server IP: 69.147.83.197
Probable Submitter: 71.141.107.118
----
Manual Page -- http://www.php.net/manual/en/function.getdate.php
Edit -- https://master.php.net/note/edit/92778
Del: integrated -- https://master.php.net/note/delete/92778/integrated
Del: useless -- https://master.php.net/note/delete/92778/useless
Del: bad code -- https://master.php.net/note/delete/92778/bad+code
Del: spam -- https://master.php.net/note/delete/92778/spam
Del: non-english -- https://master.php.net/note/delete/92778/non-english
Del: in docs -- https://master.php.net/note/delete/92778/in+docs
Del: other reasons-- https://master.php.net/note/delete/92778
Reject -- https://master.php.net/note/reject/92778
Search -- https://master.php.net/manage/user-notes.php