# fromTAI

Industry: Core

## Signature

```ts
fromTAI(taiString: string): string
```

Convert a TAI time-scale string to a UTC instant string.

- Reads `YYYY-MM-DDTHH:MM:SS[.fraction] TAI`: four-digit year, `T`, seconds required, 1 to 9 fraction digits after `.`, one space, `TAI` (the FITS time-scale token). TAI has no second 60.
- UTC = TAI − (TAI − UTC), from the IERS leap-second table built into GMT (Leap_Second.dat through Bulletin C 72, 6 July 2026). The table is closed: after the last insertion (2016-12-31) TAI − UTC stays 37 s.
- During an inserted leap second the result is `…T23:59:60Z` (ITU-R TF.460-6 Annex 3). Only the `timescale/`, `gnss/` and `finance/` functions read that string back; other GMT functions reject a second of 60.
- "" before 1972-01-01T00:00:10 TAI and on invalid input.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `taiString` | `string` | TAI time-scale string |

## Returns

ISO 8601 UTC instant string (`Z`), or "" on invalid input or a date before 1972

## Examples

```ts
import { fromTAI } from "@northguild/gmt/timescale/convert";

fromTAI("2026-01-01T00:00:37 TAI") // "2026-01-01T00:00:00Z"
```

## Source

[timescale/convert/fromTAI.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/timescale/convert/fromTAI.ts)
