Skip to content

Patterns and specifiers for OffsetDateTime #139

Description

@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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions