Skip to content

utcToRinexWeek

  • Satellite navigation time for any receiver: the six system times, week numbers and their rollovers, and RINEX navigation weeks.
utcToRinexWeek(system: RinexWeekSystem, utcString: string): RinexWeek | null

Return the RINEX navigation-file week and seconds of week of a UTC instant.

  • The inverse of rinexWeekToUtc; the week is continuous, so there is no era.
  • GPS, QZSS, NavIC and Galileo weeks count from 1980-01-06; BeiDou weeks from 2006-01-01.
  • null before the system’s epoch, for an instant past 9999-12-31T23:59:59.999999999Z (the inverse writes four-digit years only), and on invalid input.
ParameterTypeDescription
systemRinexWeekSystemthe RINEX record’s system: “GPS”, “GAL”, “BDT”, “QZS” or “IRN”
utcStringstringISO 8601 instant string; a listed leap second is accepted

{ week, timeOfWeekSeconds }, or null on invalid input, before the system’s epoch or past year 9999

A week and time of week as a RINEX navigation record counts them: continuous, so no era.

import type { RinexWeek } from "@northguild/gmt";
MemberTypeDescription
weeknumberThe continuous week number, counted from the record’s epoch without wrapping.
timeOfWeekSecondsnumberSeconds since the start of the week, from 0 up to but not including 604 800.
import { utcToRinexWeek } from "@northguild/gmt/gnss/convert";
utcToRinexWeek("IRN", "2024-01-01T00:00:00Z") // { week: 2295, timeOfWeekSeconds: 86418 }
output 

gnss/convert/utcToRinexWeek.ts

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.