Skip to content

timescale/calculate

  • The core functions, which every industry uses.
  • leapSecondsBetween: Return how many leap seconds start between two UTC instants, signed.
  • nextLeapSecond: Return the first leap second after a UTC instant, as its UTC label …T23:59:60Z.
  • taiMinusUtc: Return TAI − UTC, in whole seconds, at a UTC instant.
  • tcgMinusTt: Return TCG − TT, in seconds, at a UTC instant.

Last updated:

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.