Skip to content

Subsecond timestamp support #49

Description

@tarcieri

Section 5.6 of RFC 3339 describes time-secfrac as the syntax for partial seconds in RFC 3339 timestamps:

time-secfrac    = "." 1*DIGIT

This syntax indicates one or more digits.

We should support subsecond precision in TJSON, but need to be careful so as not to thwart content authentication efforts.

A proposal:

  • Only support 3 digits of precision (milliseconds)
  • Always omit .000 if we have an exact second multiple

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions