Re: RFC for Adding __toString to DateTime

From: Date: Sun, 02 Sep 2012 21:21:15 +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-62692@lists.php.net to get a copy of this message
Andrew Faulds 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.
ACTUALLY - you need to define which of the various ISO8601 versions you do want to use. It's not a SINGLE format style anyway. http://www.cl.cam.ac.uk/~mgk25/iso-time.html -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#62692) next »