Skip to content

Commit

Permalink
Simplify timestamp explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
heinrich5991 committed Aug 23, 2023
1 parent 47da6ad commit 85c53a4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,16 @@ into the `m.` namespace.

### Timestamps

Unless otherwise stated, timestamps are [Unix
timestamps](https://en.wikipedia.org/wiki/Unix_time), but measured in
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".
Unless otherwise stated, are timestamps are the number of milliseconds
elapsed since the unix epoch (1970-01-01 00:00:00 UTC), but not counting
leap seconds, so that each day is precisely 86,400,000 milliseconds.

This means that timestamps can repeat during leap seconds. Most
programming languages provide timestamps in that format natively, e.g.
[ECMAScript](https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-time-values-and-time-range).
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

Expand Down

0 comments on commit 85c53a4

Please sign in to comment.