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

Subsecond timestamp support #49

Open
tarcieri opened this issue Apr 22, 2017 · 0 comments
Open

Subsecond timestamp support #49

tarcieri opened this issue Apr 22, 2017 · 0 comments

Comments

@tarcieri
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant