Re: RFC for Adding __toString to DateTime

From: Date: Mon, 03 Sep 2012 11:51:22 +0000
Subject: Re: RFC for Adding __toString to DateTime
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.internals 
Request: Send a blank email to internals+get-62725@lists.php.net to get a copy of this message
On Mon, Sep 3, 2012 at 4:59 AM, Ryan McCue <lists@rotorised.com> wrote: > As far as I can tell, there's no standard which uses the Olson database > to specify the timezone, so we'd have to create one. > > What about ISO8601 with the Olson timezone suffixed? > > 2012-09-02T18:17:36+0100 (Europe/London) > 2012-09-02T18:19:05+0100 (Africa/Niamey) > Disagree - The ISO8601 provides a good *string* representation of the object. If you want every aspect of the entire object, including the properties which are also objects, serialize it. > > -- > Ryan McCue > <http://ryanmccue.info/> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#62725) next »