parseCcsdsAsciiA
Signature
Section titled “Signature”parseCcsdsAsciiA(value: string): stringRead a CCSDS ASCII Time Code A (YYYY-MM-DDThh:mm:ss.d…dZ) as an ISO 8601 UTC instant string.
- CCSDS 301.0-B-4 §3.5.1.1. The code is UTC, so a code without its optional
Zis still read as UTC, never as a local time. - Years 0001 to 9999, leading zeros in every field, upper-case
TandZ, and.as the only decimal sign. - The seconds must be present. A shorter subset such as
2024-06-15or2024-06-15T10:30returns "", because it names a span of time, not an instant. - The fraction keeps the digits as sent, trailing zeros included. Digits after the ninth are dropped, never rounded, because Temporal holds nanoseconds.
- A second of 60 is read only at one of the 27 inserted leap seconds (IERS table built into GMT) and is returned as
…T23:59:60Z.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | CCSDS ASCII Time Code A text |
Returns
Section titled “Returns”the instant as YYYY-MM-DDThh:mm:ss[.f]Z, or "" when value is not a Code A time
Examples
Section titled “Examples”import { parseCcsdsAsciiA } from "@northguild/gmt/timescale/parse";
parseCcsdsAsciiA("1988-01-18T17:20:43.123456Z") // "1988-01-18T17:20:43.123456Z" — CCSDS's own exampleSource
Section titled “Source”© 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.