develooper Front page | perl.datetime | Postings from April 2012

Re: ISO 8601 Format YYYY-MM-DDThh:mm:ss.sss[+-]hhmm

Thread Previous | Thread Next
From:
Zefram
Date:
April 24, 2012 10:14
Subject:
Re: ISO 8601 Format YYYY-MM-DDThh:mm:ss.sss[+-]hhmm
Message ID:
20120424171354.GS4237@lake.fysh.org
Thomas Klausner wrote:
>Though I'm not sure why (beeing not familiar with the spec), my patch 
>was rejected.

ISO 8601 implies (but does not explicitly state) that you must be
consistent within a single expression about whether you use the
hyphen and colon separators ("extended format").  With the time of
day expressed as "10:39:00.000", the UT offset should be expressed as
"+00:00", not "+0000".  So an ISO 8601 parser is justified in rejecting
"10:39:00.000+0000".

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About