Skip to content

timescale/convert

  • The core functions, which every industry uses.
  • fromJ2000Seconds: Convert seconds since J2000.0 on a time scale to a UTC instant string.
  • fromJulianDate: Convert a single Julian Date on a time scale to a UTC instant string.
  • fromJulianDateParts: Convert a two-part Julian Date on a time scale to a UTC instant string.
  • fromModifiedJulianDate: Convert a Modified Julian Date on a time scale to a UTC instant string.
  • fromTAI: Convert a TAI time-scale string to a UTC instant string.
  • fromTai64n: Convert a TAI64, TAI64N or TAI64NA label in hex text to a UTC instant string.
  • fromTCG: Convert a Geocentric Coordinate Time string to a UTC instant string.
  • fromTT: Convert a Terrestrial Time string to a UTC instant string.
  • toJ2000Seconds: Convert a UTC instant to seconds since J2000.0 on a time scale.
  • toJulianDate: Convert a UTC instant to a single Julian Date on a time scale.
  • toJulianDateParts: Convert a UTC instant to a two-part Julian Date { jd1, jd2 } on a time scale, exact to the nanosecond.
  • toModifiedJulianDate: Convert a UTC instant to a Modified Julian Date on a time scale.
  • toTAI: Convert a UTC instant to a TAI time-scale string, YYYY-MM-DDTHH:MM:SS[.fraction] TAI.
  • toTai64n: Convert a UTC instant to its TAI64N label in the daemontools text form, @ and 24 lowercase hex digits.
  • toTCG: Convert a UTC instant to a Geocentric Coordinate Time string, YYYY-MM-DDTHH:MM:SS[.fraction] TCG.
  • toTT: Convert a UTC instant to a Terrestrial Time string, YYYY-MM-DDTHH:MM:SS[.fraction] TT.

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.