Skip to content

Commit

Permalink
No leap second, 30 June 2025 (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
qntm authored Jan 7, 2025
1 parent 5732ef7 commit 03522ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ For your reference, at the time of writing:

### Validity for the future

Leap seconds (or the lack thereof) are announced in the International Earth Rotation and Reference Systems Service (IERS)'s six-monthly Bulletin C. For example, at the time of writing, [the latest such bulletin](https://datacenter.iers.org/data/16/bulletinc-068.txt) was published on 4 July 2024 and announced that there will be no leap second at the end of December 2024. This means that `t-a-i`'s calculations are guaranteed to be correct up to, but not including, the *next* potential leap second, which in this case is at the end of June 2025. At or beyond this point, the introduction of leap seconds cannot be predicted in advance, and the correctness of `t-a-i`'s behaviour cannot be guaranteed.
Leap seconds (or the lack thereof) are announced in the International Earth Rotation and Reference Systems Service (IERS)'s six-monthly Bulletin C. For example, at the time of writing, [the latest such bulletin](https://datacenter.iers.org/data/16/bulletinc-069.txt) was published on 6 January 2025 and announced that there will be no leap second at the end of June 2025. This means that `t-a-i`'s calculations are guaranteed to be correct up to, but not including, the *next* potential leap second, which in this case is at the end of December 2025. At or beyond this point, the introduction of leap seconds cannot be predicted in advance, and the correctness of `t-a-i`'s behaviour cannot be guaranteed.

As a result, `t-a-i`'s behaviour beyond the next-but-one (possible) leap second is considered to be undefined. Updates to the source data when new leap seconds are announced will not be considered breaking changes, and will not incur a major version bump.

Expand Down
6 changes: 3 additions & 3 deletions src/tai-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const JAN = 0
const FEB = 1
const MAR = 2
const APR = 3
const JUN = 5
// const JUN = 5
const JUL = 6
const AUG = 7
const SEP = 8
const NOV = 10
// const DEC = 11
const DEC = 11

// First column: Unix millisecond count when this relationship became effective
// Second column: TAI minus UTC in TAI seconds as of the root point
Expand Down Expand Up @@ -68,4 +68,4 @@ export const UNIX_START_MILLIS = taiData[0][0]
// the relationship between Unix time and TAI is unpredictable at or beyond this point.
// (This is the start of a possible smear.)
// Updating this value? Don't forget to update the README too!
export const UNIX_END_MILLIS = Date.UTC(2025, JUN, 30, 12, 0, 0, 0)
export const UNIX_END_MILLIS = Date.UTC(2025, DEC, 31, 12, 0, 0, 0)

0 comments on commit 03522ff

Please sign in to comment.