DevMate
Back to Toolverse

Converters

Timestamp Converter

Read a log timestamp as UTC and local time, or convert a local calendar value into Unix seconds and milliseconds.

Local processing
Loading tool workspace...

About this tool

When to use it

Read a log timestamp as UTC and local time, or convert a local calendar value into Unix seconds and milliseconds.

How to use it

Choose Unix timestamp and explicitly select seconds or milliseconds before converting. Compare ISO 8601 and UTC with the local display. For Date and time, the calendar control represents browser-local time; daylight-saving transitions can make local times ambiguous.

Guide updated . Examples checked against this implementation.

Worked examples

The Unix epoch

Input

Timestamp: 0; Unit: seconds

Expected output

1970-01-01T00:00:00.000Z

The ISO field is UTC. The local field may show a different hour or date. Milliseconds are also zero for this fixture.

Errors and unsupported input

A recent timestamp produces a date near 1970

Check whether the input is seconds but the control is set to milliseconds. The converter follows your selected unit rather than guessing.

Continue this workflow

Questions

Frequently asked questions

Does changing timezone change the instant?

A UTC instant can be displayed in different local times. Entering a timezone-free calendar value, however, requires an interpretation by the browser.