gnssToUtc
Signature
Section titled “Signature”gnssToUtc(system: GnssSystem, value: string): stringConvert a satellite system’s time-scale string to a UTC instant string.
- Reads
YYYY-MM-DDTHH:MM:SS[.fraction] <token>with the system’s RINEX token. Any other token returns "". - A continuous scale has no second 60;
GLOhas one exactly when UTC does. - During an inserted leap second the result is
…T23:59:60Z. Only thetimescale/,gnss/andfinance/functions read that string back; other GMT functions reject a second of 60. - "" before the system’s epoch and on invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
system | GnssSystem | satellite time scale: “GPS”, “GAL”, “BDT”, “QZS”, “GLO” or “IRN” |
value | string | the system’s time-scale string |
Returns
Section titled “Returns”ISO 8601 UTC instant string (Z), or "" on invalid input or before the system’s epoch
Related types
Section titled “Related types”Examples
Section titled “Examples”import { gnssToUtc } from "@northguild/gmt/gnss/convert";
gnssToUtc("GPS", "2017-01-01T00:00:17 GPS") // "2016-12-31T23:59:60Z"Source
Section titled “Source”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.