Skip to content

GNSS Week Decoder

  • Satellite navigation time for any receiver: the six system times, week numbers and their rollovers, and RINEX navigation weeks.

A satellite broadcasts its week in a fixed number of bits. The 10-bit GPS counter reaches week 1023, wraps to 0, and starts again, so a receiver that reports week 247 has not said which pass it is in. That pass is the era. A RINEX navigation file is different: its week is one continuous count, so it has no era.

Say what you have: a broadcast week with a counter and an era, a RINEX week with its system, or a UTC instant. The tool calls gnssWeekToUtc or rinexWeekToUtc for the instant, then draws the same week on every era the counter has had. utcToGnssWeek and utcToRinexWeek give the table of the same moment on every counter.

1. Say which week you have

A Galileo receiver reports week 1024, 18 seconds in, in its first era. That is the start of 7 April 2019, UTC. The same reading in the next era is a date in 2097.

What you have

2. Read it

UTC
no result
system time
no result
RINEX week
no result

3. The same moment on every counter

The moment on every broadcast counter
CounterWeekTime of week (s)Era
GPS-LNAV   
GPS-CNAV   
GAL   
BDT   
QZS-LNAV   
QZS-CNAV   
IRN-LNAV   
IRN-L1NV   
The moment on every RINEX system
SystemWeekTime of week (s)
GPS  
GAL  
BDT  
QZS  
IRN  

 

4. What the library returns

The era is yours to say. The library takes it three ways: a number counted from the counter’s first pass, "rolling" (the pass nearest the clock of the machine that asks), or { notBefore: "…" } (the first pass on or after a date you state, as a receiver built in a known year would read it). The tool draws every era, marks the one your reading is in, and marks the one the clock is in today.

The week is not one number across systems. The same two numbers mean different days on different counters. Week 2295, 86418 seconds in is the start of 2024 in a RINEX file for NavIC and a day in 2043 on NavIC’s L1 counter. The lanes show both.

A system clock is not UTC. Each system’s clock runs without leap seconds, so it leads UTC by a whole number of seconds that grew each time UTC added one. The second plate shows the system’s own reading of your instant and how far ahead of UTC it is, from utcToGnss and diffUtcAsDuration.

Inside an inserted second. A reading 17 seconds into GPS week 906 of its second era is the second UTC added at the end of 2016, written 23:59:60. The second plate says “inside an inserted second” because a duration from UTC cannot be taken across a second 60.

When the answer is NO SIGNAL. The library gives "" or null for a week the counter does not show, an instant before the counter’s first week, and a 23:59:60 on a day with no inserted second. GPS week 1024 on the 10-bit counter is one: that counter shows weeks 0 to 1023. The tool says why in one sentence. An instant typed with an offset is read as the same instant written with Z, and the UTC plate says so in a “written as” line. A lane the counter cannot show for a RINEX week is different: it is a correct answer, and the lane says “no result” without raising a signal.

The same hour, twice. GPS week 100 at the start of its first era is a day in 1981, and one era later it is a day in 2001. The start of 7 April 2019 is week 0 on the 10-bit GPS counter, week 2048 on the 13-bit one and week 1024 on Galileo’s.

gnssWeekToUtc("GAL", 1024, 18, 0); // "2019-04-07T00:00:00Z"
gnssWeekToUtc("GAL", 1024, 18, 1); // "2097-10-06T00:00:00Z"
gnssWeekToUtc("GPS-LNAV", 247, 86418, 2); // "2024-01-01T00:00:00Z"
rinexWeekToUtc("IRN", 2295, 86418); // "2024-01-01T00:00:00Z"
utcToGnssWeek("GPS-LNAV", "2019-04-07T00:00:00Z"); // { week: 0, timeOfWeekSeconds: 18, era: 2 }
utcToGnss("BDT", "2024-01-01T00:00:00Z"); // "2024-01-01T00:00:04 BDT"

Reference: gnssWeekToUtc, utcToGnssWeek, rinexWeekToUtc, utcToRinexWeek, utcToGnss. The rules are in GNSS: System Time and Week Rollover and, for the bridge and the log, Maritime: GNSS Time and Week Rollover.

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.