note 115228 added to function.date
| From: | jock | Date: | Tue, 17 Jun 2014 14:27:28 +0000 |
| Subject: | note 115228 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199699@lists.php.net to get a copy of this message | ||
As of PHP 5.3.3, date('c') will produce a string like this:
2014-06-17T16:22:42+02:00
Instead date (DATE_ISO8601) will produce:
2014-06-17T16:23:36+0200
which lacks the semicolon in the timezone part. Both are ISO8601 compliant anyway, but I found that
the latter has better compatibility with other languages like python.
----
Server IP: 72.52.91.14
Probable Submitter: 92.243.134.202
----
Manual Page -- http://php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/115228
Del: integrated -- https://master.php.net/note/delete/115228/integrated
Del: useless -- https://master.php.net/note/delete/115228/useless
Del: bad code -- https://master.php.net/note/delete/115228/bad+code
Del: spam -- https://master.php.net/note/delete/115228/spam
Del: non-english -- https://master.php.net/note/delete/115228/non-english
Del: in docs -- https://master.php.net/note/delete/115228/in+docs
Del: other reasons-- https://master.php.net/note/delete/115228
Reject -- https://master.php.net/note/reject/115228
Search -- https://master.php.net/manage/user-notes.php