Unix time converter
Converts Unix time (seconds since 1970-01-01 , or milliseconds, microseconds, or nanoseconds) to a UTC date and time and back, by the POSIX expression, with the Julian date and week.
Experimental: not yet fully verified. How results are checked
That is 2025-10-19T00:00:00Z.
- Read as milliseconds from its 13 digits; choose the unit if that is wrong.
- Unix seconds
- Unix milliseconds
- Julian date
- GPS week
- Seconds of the GPS week
- Leap seconds
Provenance
- Computed by
- time.scale.unix-time 1.0.0, core 0.1.0
- Model
- POSIX.1-2024 §4.19: seconds = (days since 1970-01-01) × 86,400 + seconds of the UTC day; every day is 86,400 s, so leap seconds are not counted; JD = 2440587.5 + seconds / 86,400
- Accuracy
- Exact to the millisecond for any date from year 0001 to 9999
- Notes
- 2 shown with the answer
- Cites
- IEEE and The Open Group, POSIX.1-2024 (IEEE Std 1003.1-2024), Base Definitions
Something look off?
How we got thisFormula, worked example, sources, and proof
Model: POSIX.1-2024 §4.19: seconds = (days since 1970-01-01) × 86,400 + seconds of the UTC day; every day is 86,400 s, so leap seconds are not counted; JD = 2440587.5 + seconds / 86,400
Accuracy: Exact to the millisecond for any date from year 0001 to 9999
When to use this: Use this to read a timestamp from a log, a database, or an API as a date and time, or to make one from a date. Paste the number as it is; the tool reads seconds, milliseconds, microseconds, or nanoseconds from its length and says which. It also gives the Julian date and the GPS week for the same instant.
Limitations: Unix time counts every day as 86,400 seconds, so it skips leap seconds: the second 23:59:60 has no Unix time, and the tool refuses it. POSIX leaves times before 1970 undefined; the tool extends the same 86,400-second day count backward, as most systems do, so they come out negative. Reading the unit from the digit count can be wrong for times near 1970 or far in the future; choose the unit to be sure.
Worked example: 1760832000000, a time in milliseconds. Source: add-celestial-and-moon time spec scenario: read as milliseconds, 2025-10-19T00:00:00Z (the spec printed 2026; 1,760,832,000 s is 20,380 days, 2025-10-19). It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.
You enter
- Unix time
- 1760832000000
You get
- UTC
- 2025-10-19T00:00:00Z
- Unix seconds
- 1760832000
- Unix milliseconds
- 1760832000000
- Julian date
- 2460967.5
- GPS week
- 2389
- Seconds of the GPS week
- 18
- Leap seconds
- Unix time counts every day as 86,400 seconds; leap seconds are not counted.
Review: Not yet independently reviewed by a geodesist.
Last verified: 2026-10-20, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.
Status: version 1.0.0, core 0.1.0. See this tool in the verification report.
Checked against: 20 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.
Sources
- POSIX.1-2024 (IEEE Std 1003.1-2024), Base Definitions, IEEE and The Open Group, IEEE Std 1003.1-2024. Section 4.19, Seconds Since the Epoch: the expression from a UTC calendar time, with every day counted as 86,400 seconds. Read free.
Terms
- GPS: Global Positioning System
- The US satellite navigation system. Its time scale runs a fixed number of seconds ahead of UTC (18 s since 2017) because it never adds leap seconds. Source: IS-GPS-200 GPS interface specification
- UTC: Coordinated Universal Time
- The world's civil time standard, kept within 0.9 s of Earth's rotation by leap seconds. Aviation calls it Zulu time, written with a Z. Source: IERS Bulletin C (leap seconds)
Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.
GPS — Global Positioning System
The US satellite navigation system. Its time scale runs a fixed number of seconds ahead of UTC (18 s since 2017) because it never adds leap seconds.
Source: IS-GPS-200 GPS interface specification
UTC — Coordinated Universal Time
The world's civil time standard, kept within 0.9 s of Earth's rotation by leap seconds. Aviation calls it Zulu time, written with a Z.
Source: IERS Bulletin C (leap seconds)