note 74712 added to function.date
| From: | jonbarnett at gmail dot com | Date: | Tue, 24 Apr 2007 19:37:38 +0000 |
| Subject: | note 74712 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125838@lists.php.net to get a copy of this message | ||
To everyone who is posting functions to parse date strings and turn them into time stamps - please
look at the strtotime() function. It probably already does whatever you're writing a function
to do.
To the person right below me: while your function might be an extremely small bit more efficient,
strtotime() will work just fine.
----
Server IP: 69.147.83.197
Probable Submitter: 71.159.54.54
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/74712
Del: integrated -- https://master.php.net/note/delete/74712/integrated
Del: useless -- https://master.php.net/note/delete/74712/useless
Del: bad code -- https://master.php.net/note/delete/74712/bad+code
Del: spam -- https://master.php.net/note/delete/74712/spam
Del: non-english -- https://master.php.net/note/delete/74712/non-english
Del: in docs -- https://master.php.net/note/delete/74712/in+docs
Del: other reasons-- https://master.php.net/note/delete/74712
Reject -- https://master.php.net/note/reject/74712
Search -- https://master.php.net/manage/user-notes.php