Time and dates

How to turn a date into epoch seconds

To convert a calendar time to epoch seconds, first establish its timezone and intended instant. Enter it in PageUtil Unix Timestamp Converter and use the seconds output required by the receiving API. A local clock reading without a timezone can be ambiguous.

Confirm seconds or milliseconds from the producer; digit count is a present-era clue and UTC/local are display representations.
Confirm seconds or milliseconds from the producer; digit count is a present-era clue and UTC/local are display representations.

What to run

Open Unix Timestamp Converter. It stays in the browser.

How to read the result

Use the seconds field unless the API docs say milliseconds.

An epoch count identifies the same instant in every timezone. Confirm the input date’s timezone and send the seconds or milliseconds the API specifies; UTC and local are display representations.

What to open next

Open Epoch Now if the value should be close to the present. It stays in the browser.

References

Related tools

Frequently asked questions

Should I send the UTC or the local epoch value?

An epoch count identifies the same instant in every timezone. Confirm the input date’s timezone and send the seconds or milliseconds the API specifies; UTC and local are display representations.

When do I use milliseconds instead of Unix seconds?

Use the seconds field unless the API docs say milliseconds. Near the present era, ten digits commonly indicate seconds and thirteen milliseconds; confirm the source unit.

Where do I check a value that should be near now?

Open Epoch Now if the value should be close to the present. It stays in the browser.

Need help with a tool or found a bug?

Report an issue directly to engineering. No accounts required — all client data remains private on your device.

Report an Issue →