Simplify timestamp explanation

This commit is contained in:
heinrich5991 2023-08-23 13:49:09 +02:00
parent 47da6ad4cc
commit 85c53a42d4

View file

@ -419,14 +419,16 @@ into the `m.` namespace.
### Timestamps ### Timestamps
Unless otherwise stated, timestamps are [Unix Unless otherwise stated, are timestamps are the number of milliseconds
timestamps](https://en.wikipedia.org/wiki/Unix_time), but measured in elapsed since the unix epoch (1970-01-01 00:00:00 UTC), but not counting
milliseconds. This means, they approximate the number of milliseconds leap seconds, so that each day is precisely 86,400,000 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 This means that timestamps can repeat during leap seconds. Most
timestamps can repeat. Most programming languages provide timestamps in programming languages provide timestamps in that format natively, e.g.
that format natively. Throughout the specification this may be referred [ECMAScript](https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-time-values-and-time-range).
to as POSIX, Unix, or just "time in milliseconds". Throughout the specification this may be referred to as POSIX,
[Unix](https://en.wikipedia.org/wiki/Unix_time), or just "time in
milliseconds".
## Specification Versions ## Specification Versions