About Convert a Date to Epoch

This guide helps you encode a date-time as a Unix timestamp. Convert Unix timestamps to readable local and UTC date-times.

How to use epoch correctly

Start with an explicit reference date and time, then choose the relevant location or named time zone. The name emphasizes the reader's result: make the reference date and location explicit.

Calendar and time-zone rules

Elapsed time counts exact seconds, while calendar time follows dates, months and local clock rules. Daylight-saving transitions can change the UTC offset, so a future calculation should use an IANA time-zone name instead of a fixed abbreviation.

A practical way to verify the answer

Run the epoch calculation from a known reference, record the inputs, and reverse the operation where possible. If another person will use the answer, test it in that person's local zone and include an ISO-formatted date so the month and day cannot be misread.

Check and share the result

Verify the resulting calendar date, weekday, local clock time and UTC offset. For the consolidated calculator and reference material, use https://time.now/unix/.