note 92338 added to function.strtotime
| From: | vaduvoiutibi at yahoo dot com | Date: | Mon, 20 Jul 2009 14:28:16 +0000 |
| Subject: | note 92338 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158508@lists.php.net to get a copy of this message | ||
Anybody knows why this doesn't work?
echo date("M j Y H:i:mA")
echo $t=strtotime(date("M j Y H:i:mA"))
displays:
Jul 20 2009 16:59:07PM
1970-01-01 02:00:00
remove the A from the format and it will work. But I don't understand why it doesn't work
with the format having A(which is for the AM/PM).
----
Server IP: 69.147.83.197
Probable Submitter: 91.200.122.230
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/92338
Del: integrated -- https://master.php.net/note/delete/92338/integrated
Del: useless -- https://master.php.net/note/delete/92338/useless
Del: bad code -- https://master.php.net/note/delete/92338/bad+code
Del: spam -- https://master.php.net/note/delete/92338/spam
Del: non-english -- https://master.php.net/note/delete/92338/non-english
Del: in docs -- https://master.php.net/note/delete/92338/in+docs
Del: other reasons-- https://master.php.net/note/delete/92338
Reject -- https://master.php.net/note/reject/92338
Search -- https://master.php.net/manage/user-notes.php