Live precision / 03

Current milliseconds

Copy the current 13-digit Unix time in milliseconds and compare it with seconds, microseconds and nanoseconds.

Current value

From your device clock
Unix seconds—
Milliseconds
—
Microseconds
—
Nanoseconds
—

Derived from your device’s millisecond clock

Why milliseconds usually have 13 digits

Modern dates are roughly 1.7 trillion milliseconds after the Unix epoch, which gives a 13-digit positive value. Digit count changes for earlier and far-future dates, so it should not be the only validation rule.

JavaScript precision

Date.now() returns whole milliseconds from the device clock. Multiplying that value can express microsecond or nanosecond units, but it cannot create new timing precision. Systems requiring measured sub-millisecond timing need an appropriate high-resolution clock and a carefully defined epoch relationship.

How to use this tool

Copy the milliseconds row for an API or database field documented in milliseconds. The seconds row is divided by 1,000; microsecond and nanosecond rows scale the same device-clock reading. They are not independent high-resolution clock measurements.

Worked input and output

Input or settingExpected result
1700000000 · s1700000000000 · ms
1700000000000 · ms1700000000000000 · µs
1700000000000 · ms1700000000000000000 · ns

Checks before using the result

An incorrect device clock produces an incorrect current value. This page does not synchronize your clock with an external time service. For a stored value, use timestamp to date and choose milliseconds. For execution duration, use a monotonic runtime timer; calendar time can move when the system clock is corrected.

Frequently asked questions

Why is the current millisecond timestamp usually 13 digits?

Contemporary dates are about 1.7 trillion milliseconds after the 1970 epoch. Earlier and far-future dates can have a different length.

What does Date.now() return?

JavaScript Date.now() returns the whole number of Unix milliseconds indicated by the device clock.

Does multiplying milliseconds create precise nanoseconds?

No. Multiplication changes the unit, but the added trailing zeros are not measured sub-millisecond precision.

Tools / 01—06

More timestamp tools

Each route starts with a specific input and gives a specific answer.