Unix Timestamp Converter

Convert a Unix timestamp (seconds or milliseconds) to a date and time, or a date and time to a Unix timestamp. UTC and your chosen UTC offset are shown side by side.

Direction
Date and time (selected offset) —
    The value copied is the Unix time in seconds when you convert a date and time to Unix time, and the date and time in ISO 8601 format (with the selected offset) when you convert Unix time to a date and time.

    What is Unix time?

    Unix time (also called epoch time or a Unix timestamp) is the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970 (the epoch). Programs, databases and logs use it to store a point in time as a single integer.

    UTC and the selected offset

    A Unix time is the same single value everywhere in the world. When you turn it into a date and time, you choose which offset to show.

    Before 1970 (negative Unix times)

    A date and time before 1970 is expressed as a negative Unix time (−1 = 1969-12-31 23:59:59 UTC). This tool supports negative values.

    The year 2038 problem

    A system that stores Unix time in a 32-bit signed integer overflows after 2,147,483,647 seconds (2038-01-19 03:14:07 UTC). This tool also shows whether a result fits in a 32-bit signed integer (−2,147,483,648 to 2,147,483,647).

    Examples

    Notes

    Source

    Frequently asked questions

    My Unix time has 13 digits. What should I do?

    It is a value in milliseconds. Set the unit of the input to milliseconds. A value of about 10 digits is in seconds.

    Does a Unix time change with the time zone?

    No. A Unix time is one value that stands for the same moment everywhere. You only choose which offset to show when you turn it into a date and time.

    What about leap seconds?

    Unix time does not count leap seconds (a day is always 86,400 seconds). This tool calculates with that standard definition and does not handle leap seconds.