On Sat, Sep 1, 2012 at 6:36 AM, Pierre Joye <pierre....@gmail.com> wrote:
> hi Will, > > On Sat, Sep 1, 2012 at 12:14 PM, Will Fitch <willfi...@php.net> 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. > > It would be better to name the format method setDefaultFormat instead > of setDefaultPattern, to be consistent with the rest of the API. > This makes sense. I'll update. > > (not saying I like the idea or not, only a 1st comment :) > > Cheers, > -- > Pierre > > @pierrejoye >