tjson-spec icon indicating copy to clipboard operation
tjson-spec copied to clipboard

Subsecond timestamp support

Open tarcieri opened this issue 8 years ago • 0 comments

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

tarcieri avatar Apr 22 '17 22:04 tarcieri