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

Add support for rfc2579 datetime format #26

Closed
rgayon opened this issue Oct 7, 2016 · 1 comment
Closed

Add support for rfc2579 datetime format #26

rgayon opened this issue Oct 7, 2016 · 1 comment
Assignees

Comments

@rgayon
Copy link

rgayon commented Oct 7, 2016

https://tools.ietf.org/html/rfc2579

These timestamps are used in ipp cache files (https://tools.ietf.org/html/rfc2911).

DateAndTime ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
    STATUS       current
    DESCRIPTION
            "A date-time specification.

            field  octets  contents                  range
            -----  ------  --------                  -----
              1      1-2   year*                     0..65536
              2       3    month                     1..12
              3       4    day                       1..31
              4       5    hour                      0..23
              5       6    minutes                   0..59
              6       7    seconds                   0..60
                           (use 60 for leap-second)
              7       8    deci-seconds              0..9
              8       9    direction from UTC        '+' / '-'
              9      10    hours from UTC*           0..13
             10      11    minutes from UTC          0..59

            * Notes:
            - the value of year is in network-byte order
            - daylight saving time in New Zealand is +13

            For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be
            displayed as:

                             1992-5-26,13:30:15.0,-4:0

@joachimmetz joachimmetz mentioned this issue Oct 8, 2016
16 tasks
@joachimmetz joachimmetz changed the title Add a parser for rfc2579 datetime format Add support for rfc2579 datetime format Oct 11, 2016
joachimmetz added a commit to joachimmetz/dfdatetime that referenced this issue May 29, 2017
joachimmetz added a commit to joachimmetz/dfdatetime that referenced this issue May 29, 2017
@joachimmetz
Copy link
Member

@joachimmetz joachimmetz self-assigned this May 29, 2017
joachimmetz added a commit to joachimmetz/dfdatetime that referenced this issue May 29, 2017
joachimmetz added a commit to joachimmetz/dfdatetime that referenced this issue May 29, 2017
joachimmetz added a commit to joachimmetz/dfdatetime that referenced this issue May 29, 2017
joachimmetz added a commit to joachimmetz/dfdatetime that referenced this issue May 29, 2017
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