ZWIEGNET Linux Consultants
$ date +%s

Unix Timestamp

Convert a Unix timestamp to a local date and UTC.

Unix timestamps

A Unix timestamp is the number of seconds since 1970-01-01 00:00:00 UTC, not counting leap seconds. The same number is the same moment everywhere. Local clocks add a timezone on top. 0 is the epoch. 1700000000 is 2023-11-14 22:13:20 UTC. Negative numbers are moments before 1970, which some 32-bit interpreters still accept and some do not.

Paste a number to see the UTC time. Paste a UTC date to see the number. The point of the tool is to stop doing that arithmetic in your head when a log line, a database column, or a JWT exp claim is a raw integer. Always label the result as UTC unless you have converted it. A timestamp does not contain a timezone.

The 32-bit signed range ends at 2038-01-19 03:14:07 UTC. After that, programs that store time in a 32-bit time_t wrap. Modern Linux is 64-bit for this value. If you are feeding a number into an old embedded device, check the width before you trust a date past 2038.

The calculator does not parse syslog dates, Apache dates, or ISO-8601 with an offset. Give it either an integer or a UTC date in the form the field describes. Milliseconds, the 13-digit numbers JavaScript uses, are not seconds. Divide by 1000 before you call it a Unix time.