A worked example
The same instant in two units
- Start with
- 1704067200 or 1704067200000
- Check the result
- UTC 2024-01-01T00:00:00.000Z
Both numbers represent the same instant. The local display varies with the device’s time zone.
Developer & Data tool
Read a Unix value from a log as a date, or convert local date and time into timestamps.
Local time uses the current device’s time zone. Compare it with the UTC result.
10/12/2026, 9:15:10 PM2026-10-12T21:15:10.000Z17918397001791839700000Read log timestamps
Enter it on the left. The tool infers seconds or milliseconds from digit count and shows local time alongside UTC.
Choose a local date and time on the right. Results are shown in seconds and milliseconds using the device’s time zone; copy the unit you need.
Check whether your log or API uses seconds or milliseconds. Also confirm that the UTC result has the expected year and date rather than relying on digit detection alone.
A worked example
Both numbers represent the same instant. The local display varies with the device’s time zone.