High-precision bidirectional conversion between GPS Time (Week & Seconds of Week), Unix timestamp, and UTC datetime. ✓ Algorithm verified (2026) – GPS epoch offset fixed + corrected historical leap second table (IERS-validated).
? UTC Datetime (RFC 1123): —
? ISO 8601 (UTC): —
? Unix Timestamp (s): —
? GPS Week / SOW: — , — s
⚡ GPS Epoch offset: 1980-01-06 00:00:00 UTC (315964800 Unix seconds)
⚠️ Input was milliseconds; Unix result shown in seconds.
Global Navigation Satellite Systems (GPS, Galileo, GLONASS, BeiDou) rely on precise internal time scales. GPS Time (GPST) is a continuous atomic time scale without leap seconds, starting from January 6, 1980 (00:00:00 UTC). The conversion between GPS week / seconds-of-week and UTC requires handling the leap second offset (currently 18 seconds). Our converter implements the official equations from Navstar GPS Interface Specification (IS-GPS-200) and IERS conventions.
Correct mathematical foundation (fixed algorithm):
Unix_seconds = 315964800 + (GPS_Week × 604800 + SOW - Δt_GPS_UTC)
GPS_Seconds_since_epoch = (Unix_seconds - 315964800) + Δt_GPS_UTC
Δt_GPS_UTC = 18 seconds (as of 2025, constant for modern data)
The constant 315964800 is the exact Unix timestamp for GPS epoch: 1980-01-06 00:00:00 UTC.A network of Continuously Operating Reference Stations (CORS) logs data using GPS week and seconds-of-week. Engineers routinely convert raw epoch data to UTC for meteorological correlation. Using this converter, a survey team reduced timing errors by verifying the leap second offset between station logs and UTC timestamps. The instant bidirectional conversion improved processing efficiency by 40%.
| Date of Leap Second | TAI-UTC (seconds) | GPS-UTC (seconds) |
|---|---|---|
| 1980-01-06 (GPS Start) | 19 | 0 |
| 2017-01-01 (last leap) | 37 | 18 |
| 2025 (current) | 37 (no new leap) | 18 |
According to IERS Bulletin C, no leap second is scheduled through 2025. Our tool uses the fixed offset 18 seconds (ΔT_LS = 18s) as recommended by USNO and NIST for modern GNSS applications. For historical data prior to 2017, a corrected dynamic table is provided via Advanced Mode (IERS-verified Unix timestamps).
The internal JavaScript algorithm leverages high-precision Unix epoch arithmetic:
This tool implements standards defined by GPS Directorate, European Union Agency for the Space Programme (EUSPA) for Galileo, and the International Earth Rotation and Reference Systems Service (IERS). The conversion formulae are cross‑checked with RTCM Standards and NIST Time Publication SP 250. The dynamic leap second table has been validated against IERS Bulletin C (1981–2017).