Re: Which function returns a correct ISO8601 date?
| From: | Alessandro Pellizzari | Date: | Sat, 07 Sep 2013 15:29:33 +0000 |
| Subject: | Re: Which function returns a correct ISO8601 date? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322061@lists.php.net to get a copy of this message | ||
On Sat, 07 Sep 2013 14:47:00 +0200, Simon Schick wrote:
> The method date("c") actually formats a date, fitting to the format
> defined in the constant DateTime::ATOM.
>
> Are both formats (with and without colon) valid for ISO8601, or is the
> documentation for the method date() wrong?
Yes:
http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators
Bye.