Patterns and specifiers for OffsetDateTime #139

Closed
GoogleCodeExporter opened this Issue Mar 15, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@GoogleCodeExporter
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

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

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

  • Changed state: Accepted
  • Added labels: Type-Enhancement, Milestone-1.1-consider
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

  • Changed state: Accepted
  • Added labels: Type-Enhancement, Milestone-1.1-consider
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

Original comment by malcolm.rowe on 25 Jan 2013 at 8:33

  • Added labels: Milestone-1.2.0
  • Removed labels: Milestone-1.1-consider

Original comment by malcolm.rowe on 25 Jan 2013 at 8:33

  • Added labels: Milestone-1.2.0
  • Removed labels: Milestone-1.1-consider
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

This was completed a while ago. It's even got documentation these days!

Original comment by jonathan.skeet on 26 Jul 2013 at 4:03

  • Changed state: Fixed
This was completed a while ago. It's even got documentation these days!

Original comment by jonathan.skeet on 26 Jul 2013 at 4:03

  • Changed state: Fixed

@malcolmr malcolmr modified the milestone: 1.2.0 Mar 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment