Double Precision Meter
An instant can be stored four ways: as one Julian Date, as one Modified Julian Date (MJD), as seconds since J2000.0, or as a two-part Julian Date that keeps the whole days and the fraction of a day in two numbers. The first three are one double each, and a double has a fixed number of digits to spend. A Julian Date near the present uses 7 of them on the day count, so little is left for the fraction. An MJD counts from a later origin, so it spends fewer digits on days. Seconds since J2000.0 keep the most digits at the year 2000 and fewer the further the instant lies from it.
Type an instant that ends in Z, or drag the year from 1972 to 9999. Each plate shows how far its form lands from the instant you gave. The tool writes the instant in that form with the library, reads it back to UTC with the library and states the gap. No drift here comes from a formula.
The plot under the plates shows the same drift measured across the whole range, on a log axis from 1 ns to 100 µs. A line on the floor band is exact. Each line is the worst of four fixed times of day in each sampled year, so a value you type can drift more or less than the line, but never more than the bound in the function’s documentation.
Single Julian Date. toJulianDate and fromJulianDate write and read one double. Its spacing is about 40 µs, so a value lands up to about 20 µs from the instant. After the JD passes 2²² days, in 6771, the spacing doubles. Near either end of the range one double cannot hold the instant, and toJulianDate returns null.
Modified Julian Date. toModifiedJulianDate and fromModifiedJulianDate count from a later origin, so the number is smaller and keeps more digits for the fraction near the present.
Seconds since J2000.0. toJ2000Seconds and fromJ2000Seconds are exact at J2000.0 itself and lose precision as the count grows away from it.
Two-part Julian Date. toJulianDateParts and fromJulianDateParts keep the whole days in one number and the fraction in another, so the fraction keeps its precision across the whole range.
Worth trying: Twenty microseconds — the single JD drops them and the two parts keep them. Past the step — the spacing has doubled. J2000.0 itself — J2000 seconds is exactly 0, so nothing drifts. The far end — J2000 seconds has grown large and drifts too.
Reference: toJulianDate, toJulianDateParts, toModifiedJulianDate and toJ2000Seconds. The sibling tool is the Julian Day Counter.
© 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.