# @northguild/gmt/timescale > Leap seconds and the TAI to UTC offset: convert UTC instant strings to and from TAI and find the next leap second. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## calculate - [leapSecondsBetween](https://northguild.dev/gmt/reference/timescale/calculate/leapSecondsBetween.md): Return how many leap seconds start between two UTC instants, signed. - [nextLeapSecond](https://northguild.dev/gmt/reference/timescale/calculate/nextLeapSecond.md): Return the first leap second after a UTC instant, as its UTC label `…T23:59:60Z`. - [taiMinusUtc](https://northguild.dev/gmt/reference/timescale/calculate/taiMinusUtc.md): Return TAI − UTC, in whole seconds, at a UTC instant. - [tcgMinusTt](https://northguild.dev/gmt/reference/timescale/calculate/tcgMinusTt.md): Return TCG − TT, in seconds, at a UTC instant. ## convert - [fromJ2000Seconds](https://northguild.dev/gmt/reference/timescale/convert/fromJ2000Seconds.md): Convert seconds since J2000.0 on a time scale to a UTC instant string. **The scale defaults to `"TT"`, unlike the Julian Date and MJD functions, which default to `"UTC"`**: J2000.0 is defined as 2000-01-01T12:00:00 TT (IAU 1994 Resolution C7). - [fromJulianDate](https://northguild.dev/gmt/reference/timescale/convert/fromJulianDate.md): Convert a single Julian Date on a time scale to a UTC instant string. The scale defaults to `"UTC"`. - [fromJulianDateParts](https://northguild.dev/gmt/reference/timescale/convert/fromJulianDateParts.md): Convert a two-part Julian Date on a time scale to a UTC instant string. The scale defaults to `"UTC"`. - [fromModifiedJulianDate](https://northguild.dev/gmt/reference/timescale/convert/fromModifiedJulianDate.md): Convert a Modified Julian Date on a time scale to a UTC instant string. The scale defaults to `"UTC"`. - [fromTAI](https://northguild.dev/gmt/reference/timescale/convert/fromTAI.md): Convert a TAI time-scale string to a UTC instant string. - [fromTai64n](https://northguild.dev/gmt/reference/timescale/convert/fromTai64n.md): Convert a TAI64, TAI64N or TAI64NA label in hex text to a UTC instant string. - [fromTCG](https://northguild.dev/gmt/reference/timescale/convert/fromTCG.md): Convert a Geocentric Coordinate Time string to a UTC instant string. - [fromTT](https://northguild.dev/gmt/reference/timescale/convert/fromTT.md): Convert a Terrestrial Time string to a UTC instant string. - [toJ2000Seconds](https://northguild.dev/gmt/reference/timescale/convert/toJ2000Seconds.md): Convert a UTC instant to seconds since J2000.0 on a time scale. **The scale defaults to `"TT"`, unlike the Julian Date and MJD functions, which default to `"UTC"`**: J2000.0 is defined as 2000-01-01T12:00:00 TT (IAU 1994 Resolution C7). - [toJulianDate](https://northguild.dev/gmt/reference/timescale/convert/toJulianDate.md): Convert a UTC instant to a single Julian Date on a time scale. The scale defaults to `"UTC"`. - [toJulianDateParts](https://northguild.dev/gmt/reference/timescale/convert/toJulianDateParts.md): Convert a UTC instant to a two-part Julian Date `{ jd1, jd2 }` on a time scale, exact to the nanosecond. The scale defaults to `"UTC"`. - [toModifiedJulianDate](https://northguild.dev/gmt/reference/timescale/convert/toModifiedJulianDate.md): Convert a UTC instant to a Modified Julian Date on a time scale. The scale defaults to `"UTC"`. - [toTAI](https://northguild.dev/gmt/reference/timescale/convert/toTAI.md): Convert a UTC instant to a TAI time-scale string, `YYYY-MM-DDTHH:MM:SS[.fraction] TAI`. - [toTai64n](https://northguild.dev/gmt/reference/timescale/convert/toTai64n.md): Convert a UTC instant to its TAI64N label in the daemontools text form, `@` and 24 lowercase hex digits. - [toTCG](https://northguild.dev/gmt/reference/timescale/convert/toTCG.md): Convert a UTC instant to a Geocentric Coordinate Time string, `YYYY-MM-DDTHH:MM:SS[.fraction] TCG`. - [toTT](https://northguild.dev/gmt/reference/timescale/convert/toTT.md): Convert a UTC instant to a Terrestrial Time string, `YYYY-MM-DDTHH:MM:SS[.fraction] TT`. ## format - [formatCcsdsAsciiA](https://northguild.dev/gmt/reference/timescale/format/formatCcsdsAsciiA.md): Write an instant as a CCSDS ASCII Time Code A string (`YYYY-MM-DDThh:mm:ss.d…dZ`). - [formatCcsdsAsciiB](https://northguild.dev/gmt/reference/timescale/format/formatCcsdsAsciiB.md): Write an instant as a CCSDS ASCII Time Code B string (`YYYY-DDDThh:mm:ss.d…dZ`, day of year). ## parse - [parseCcsdsAsciiA](https://northguild.dev/gmt/reference/timescale/parse/parseCcsdsAsciiA.md): Read a CCSDS ASCII Time Code A (`YYYY-MM-DDThh:mm:ss.d…dZ`) as an ISO 8601 UTC instant string. - [parseCcsdsAsciiB](https://northguild.dev/gmt/reference/timescale/parse/parseCcsdsAsciiB.md): Read a CCSDS ASCII Time Code B (`YYYY-DDDThh:mm:ss.d…dZ`, day of year) as an ISO 8601 UTC instant string in calendar form. ## validate - [isLeapSecond](https://northguild.dev/gmt/reference/timescale/validate/isLeapSecond.md): Return true when a UTC instant string is one of the 27 inserted leap seconds.