mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-20 18:04:10 +02:00
Clarify that Unix timestamps disregard leap seconds since 1970
Fixes #1626.
This commit is contained in:
parent
4f8b8a746c
commit
47da6ad4cc
1
changelogs/appendices/newsfragments/1627.clarification
Normal file
1
changelogs/appendices/newsfragments/1627.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify timestamp specification with respect to leap seconds
|
||||||
|
|
@ -419,9 +419,14 @@ into the `m.` namespace.
|
||||||
|
|
||||||
### Timestamps
|
### Timestamps
|
||||||
|
|
||||||
Unless otherwise stated, timestamps are measured as milliseconds since
|
Unless otherwise stated, timestamps are [Unix
|
||||||
the Unix epoch. Throughout the specification this may be referred to as
|
timestamps](https://en.wikipedia.org/wiki/Unix_time), but measured in
|
||||||
POSIX, Unix, or just "time in milliseconds".
|
milliseconds. This means, they approximate the number of milliseconds
|
||||||
|
since 1970-01-01 00:00:00.000 UTC, but disregard leap seconds so that
|
||||||
|
each day is precisely 86,400,000 milliseconds. This also means that
|
||||||
|
timestamps can repeat. Most programming languages provide timestamps in
|
||||||
|
that format natively. Throughout the specification this may be referred
|
||||||
|
to as POSIX, Unix, or just "time in milliseconds".
|
||||||
|
|
||||||
## Specification Versions
|
## Specification Versions
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue