OffsetDateTime does not support a formatting and parsing pattern.
One of the issues is that OffsetPattern shares specifiers with LocalTime. I
suggest we add 'z' specifier to OffsetPattern to handle the Offset, ala
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx#zzzSpecifier
Allow a 'zzzz', which includes fractional seconds. e.g. '-07:00.1'.
Allow a 'Z', 'ZZ', 'ZZZ', 'ZZZZ', which uses 'Z' for '+00:00' and '-00:00'.
An OffsetDateTimePattern can then be added. It uses all the LocalDateTime
specifiers plus the Z/z's from OffsetPattern.
Original issue reported on code.google.com by makaretu on 4 Nov 2012 at 1:21
The text was updated successfully, but these errors were encountered:
I was planning on having some sort of "embedded" pattern, so that you could
write the pattern as something like:
yyyy-MM-ddTHH:mm:ss o(+HH:mm)
Where o(...) meant "use the ... part as the offset pattern". I'll think more
about both alternatives.
Original comment by jonathan.skeet on 4 Nov 2012 at 9:07
Original issue reported on code.google.com by
makaretu
on 4 Nov 2012 at 1:21The text was updated successfully, but these errors were encountered: