Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patterns and specifiers for OffsetDateTime #139

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

Patterns and specifiers for OffsetDateTime #139

GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments
Milestone

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Projects
None yet
Development

No branches or pull requests

2 participants