Re: RFC for Adding __toString to DateTime

From: Date: Sat, 01 Sep 2012 10:27:51 +0000
Subject: Re: RFC for Adding __toString to DateTime
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-62628@lists.php.net to get a copy of this message
On 01/09/12 11:14, Will Fitch wrote:
I would like to officially introduce an RFC with a patch to implement __toString to DateTime. This is a commonly requested feature that goes unanswered mostly because of the inability to agree on a default pattern. In short, the patch uses the ISO-8601 format as the default pattern. The pattern may be changed via setDefaultPattern and date_default_pattern_set, as explained in the RFC. The link to the RFC and patch are here: https://wiki.php.net/rfc/datetime_tostring. While I know this isn't as interesting as many of the current proposals going on, I'm hoping you can give this RFC a look. - Will Oh, thank you Will! I saw the bug report suggesting it myself and was thinking of implementing it. I'm glad to see you thought the same way I did, and used the ISO-8601 format as the default.
+1 from me. -- Andrew Faulds http://ajf.me/

« previous php.internals (#62628) next »