Re: RFC for Adding __toString to DateTime

From: Date: Sun, 02 Sep 2012 21:20:45 +0000
Subject: Re: RFC for Adding __toString to DateTime
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-62691@lists.php.net to get a copy of this message
On Sun, 2 Sep 2012, Andrew Faulds wrote: > On 02/09/12 21:50, Derick Rethans wrote: > > Yes, I am saying that ISO8601 is lossy - and that is something that > > shouldn't be the default format. > > > Lossy of what? Local timezone? > > ISO 8601 is the single unambiguously ordered (no mm-dd/dd-mm > confusion), international standard, machine-readable (default in > ECMAScript, for instance) date/time format. > > I see no reason not to use it. Date/time should be UTC anyway when > debugging. Yeah, I understand you don't see a reason. That's what scares me. For debugging I definetely wouldn't want to have my datetimes mangled to just show UTC. I wouldn't even be able to see the difference between 4pm London and 5pm Amsterdam time! cheers, Derick

« previous php.internals (#62691) next »