diff --git a/spec.md b/spec.md index b6134799..2438b722 100644 --- a/spec.md +++ b/spec.md @@ -442,11 +442,13 @@ Timestamp extension type is assigned to extension type `-1`. It defines 3 format seconds in 64-bit signed int | +--------+--------+--------+--------+--------+--------+--------+--------+ -* Timestamp 32 format can represent a timestamp in [1970-01-01 00:00:00 UTC, 2106-02-07 06:28:16 UTC) range. Nanoseconds part is 0. -* Timestamp 64 format can represent a timestamp in [1970-01-01 00:00:00.000000000 UTC, 2514-05-30 01:53:04.000000000 UTC) range. -* Timestamp 96 format can represent a timestamp in [-584554047284-02-23 16:59:44 UTC, 584554051223-11-09 07:00:16.000000000 UTC) range. +* Timestamp 32 format can represent a timestamp in `[1970-01-01 00:00:00 UTC, 2106-02-07 06:28:16 UTC)` range. Nanoseconds part is 0. +* Timestamp 64 format can represent a timestamp in `[1970-01-01 00:00:00.000000000 UTC, 2514-05-30 01:53:04.000000000 UTC)` range. +* Timestamp 96 format can represent a timestamp in `[-292277022657-01-27 08:29:52 UTC, 292277026596-12-04 15:30:09 UTC)` range. * In timestamp 64 and timestamp 96 formats, nanoseconds must not be larger than 999999999. +Time ranges are written with right-half-open ranges (begin inclusive, end exclusive). + Pseudo code for serialization: struct timespec {