GNSS Rollover Checker
A satellite broadcasts its week as a short number, so the number repeats. The 10-bit counters (GPS-LNAV, QZS-LNAV and IRN-LNAV) repeat every 1024 weeks, which is 7168 days. A receiver has to work out which pass the number is on, and it does that in one of two ways. It counts from the date the firmware was built, or it assumes a fixed era.
Pick a counter and how the firmware counts, then check today or a date. The tool calls utcToGnssWeek for the true reading and gnssWeekToUtc for the date the firmware makes of it. areUtcEqual and diffUtcAsDuration give the verdict and the time left. The slider walks the check date through the firmware’s whole window.
Build date or fixed era. A firmware that counts from a build date reads right for one counter period after it, then reports a date one period early. A firmware fixed on an era reads right until that era ends. A NavIC receiver built in 2020 reads the right date in October 2026 and goes wrong in August 2039. The same receiver checked in 2040 reports a date 7168 days early.
The counters are not the same length. The 10-bit counters wrap every 1024 weeks. Galileo’s counter is four times as long, and the 13-bit counters (BDT and the CNAV and L1NV messages) are eight times as long. A Galileo receiver built in 2024 stays right until 2102.
A receiver can already be wrong. A QZS receiver built in 2005 went wrong one pass after its build date, years before today, so the plates say how long ago it began reporting an early date.
A firmware can be ahead. Firmware fixed on an era that has not begun reports a date 7168 days late. The tool says late, not early.
Why the gap is not always exactly 7168 days. The counters run on the satellite system’s own clock, which does not insert leap seconds. The check is made against UTC, so a few seconds of the gap come from the leap seconds UTC inserted in between. The verdict says them.
The rolling rule needs a clock. Firmware that picks the pass nearest to the device’s own clock is right as long as that clock is. Only a live check can say what it reads, so the tool shows it only when you check today.
When the answer is NO SIGNAL. The library gives "" or null for a build date or a check date that is not an ISO 8601 instant, for an era that is not a whole number, for a check date before the counter’s first week, and for a date after the year 9999. A build date before the counter’s first week is not an error: the tool reads it as era 0, from the counter’s first pass, and a line by the result says so. The tool says which fault it found in one sentence. A blank field is not an error. It waits for you to type.
utcToGnssWeek("IRN-LNAV", "2026-10-15T00:00:00Z");gnssWeekToUtc("IRN-LNAV", week, timeOfWeekSeconds, { notBefore: "2020-01-01T00:00:00Z",});gnssWeekToUtc("IRN-LNAV", week, timeOfWeekSeconds, 1);gnssWeekToUtc("IRN-LNAV", week, timeOfWeekSeconds, "rolling");areUtcEqual(reported, "2026-10-15T00:00:00Z");diffUtcAsDuration("2026-10-15T00:00:00Z", wrongFrom, "days");Reference: utcToGnssWeek, gnssWeekToUtc, areUtcEqual, diffUtcAsDuration. The rules are in GNSS: System Time and Week Rollover and Maritime: GNSS Time and Week Rollover.
© 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.