Date & time Timestamps

Nanoseconds to date converter

Value
Direction
Epoch system
Result 2023-11-14T22:13:20Z
Readable Tue, 14 Nov 2023 22:13:20 GMT
ISO 8601 2023-11-14T22:13:20.000Z
JavaScript Date Tue Nov 14 2023 22:13:20 GMT+0000 (Coordinated Universal Time)
Date only 2023-11-14
Time only (UTC) 22:13:20
Unix seconds 1,700,000,000
Unix milliseconds 1,700,000,000,000
Windows FILETIME 133,444,736,000,000,000
.NET ticks 638,355,968,000,000,000
Excel serial 45,244.925926
Mac HFS+ seconds 3,782,844,800
Note
Local · beyond JavaScript’s safe integer range
Advertisement
320 × 100

Converts a nineteen-digit nanosecond timestamp into a date. Go’s `time.UnixNano()`, Prometheus and most tracing systems work in nanoseconds.

How to use the nanoseconds to date converter

1 Paste the value. Every other epoch is shown alongside the date.
2 Switch the direction to go the other way — the same page converts both ways.
3 All times are UTC. Convert to your own zone separately if you need local time.

Nanosecond precision runs into a hard limit that catches people out: a signed 64-bit integer of nanoseconds only spans about 584 years, so Go’s UnixNano is documented as undefined outside 1678 to 2262. That is fine for observability data and wrong for anything historical. The other practical point is that JavaScript cannot represent these numbers exactly: a nineteen-digit integer exceeds the 53-bit safe integer range, so parsing one into a Number loses the last few digits. Anything comparing nanosecond timestamps for ordering needs BigInt or strings, not floats.

Questions

Go’s time package, Prometheus, OpenTelemetry and most distributed tracing.

Go, time package
Advertisement
300 × 250
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding