Unix Timestamp Converter

Share converter:
Embed this tool:

Switch between epoch seconds and calendar dates in either direction. Paste a timestamp to see the date in UTC and in your own time zone, or enter a date and time to get the matching timestamp.

What is Unix time?

A Unix timestamp, also called epoch time or POSIX time, is a count of the seconds that have passed since midnight UTC at the start of 1 January 1970, the Unix epoch. A single integer identifies one moment worldwide, which makes it a favorite for databases, log files, APIs and file systems.

Unix time treats every day as exactly 86,400 seconds and does not count leap seconds. The clock therefore repeats or skips a second at a leap second instead of showing 23:59:60, and the conversion between timestamps and calendar dates stays simple arithmetic.

timestamp = days since 1970-01-01 × 86,400 + seconds since midnight UTC

Converting a timestamp to a date

Leave the mode on Timestamp to Date & Time and enter the number of seconds. Two lines appear: the UTC date in the familiar HTTP style (for example Tue, 14 Nov 2023 22:13:20 GMT) and the same moment in your device's own format and time zone.

  • Seconds, not milliseconds. Ten-digit values are seconds. A 13-digit value such as 1700000000000 is in milliseconds, so divide it by 1,000 first; entered as it is, it would land in the year 55840.
  • Fractions are dropped. 1.5 is displayed as the whole second 1.
  • Before 1970. Negative numbers count backwards from the epoch: -1 is 23:59:59 UTC on 31 December 1969.
  • Empty field. A blank box is read as 0, which is the epoch itself.
  • Range. Dates run to the year 275760 (timestamp 8,640,000,000,000). Beyond that the tool shows Invalid Date.

Converting a date to a timestamp

Choose Date & Time to Timestamp, fill in the year, month and day, and optionally the hour, minute and second. Pick UTC to read the date as Coordinated Universal Time, or Local Time to read it in the time zone of your device, with its daylight-saving rules for that date.

  • The year must be 1970 or later; an earlier year leaves the previous answer unchanged.
  • Empty hours, minutes and seconds count as zero, so a date alone means midnight.
  • Enter the month and day too. A blank month or day is treated as 0, which steps one back: month 0 is December of the previous year and day 0 is the last day of the previous month. A year on its own, such as 2026, gives 30 November 2025.
  • Overflowing values roll over: month 13 becomes January of the next year, hour 24 is midnight of the next day, and 90 minutes is one hour and thirty minutes.
  • Decimals are truncated, so 15.9 as a day is read as 15.

Worked example. Take 29 February 2024, 13:45:10 UTC. From 1 January 1970 to 1 January 2024 there are 54 × 365 + 13 leap days = 19,723 days. Adding 31 days of January and 28 more to reach 29 February gives 19,782 days. Then 19,782 × 86,400 = 1,709,164,800 seconds. The time of day adds 13 × 3,600 + 45 × 60 + 10 = 49,510 seconds, so the timestamp is 1,709,214,310, matching the converter.

Notable timestamps

TimestampDate and time (UTC)
0Thu, 01 Jan 1970 00:00:00
86,400Fri, 02 Jan 1970 00:00:00
1,000,000,000Sun, 09 Sep 2001 01:46:40
1,234,567,890Fri, 13 Feb 2009 23:31:30
1,700,000,000Tue, 14 Nov 2023 22:13:20
2,000,000,000Wed, 18 May 2033 03:33:20
2,147,483,647Tue, 19 Jan 2038 03:14:07
-2,147,483,648Fri, 13 Dec 1901 20:45:52

The last two rows are the limits of a signed 32-bit integer. Systems that still store time in 32 bits run out after 03:14:07 UTC on 19 January 2038 and wrap around to 1901. This is the year 2038 problem; 64-bit timestamps, now standard, push the limit billions of years away.

Getting the current timestamp in code

LanguageCurrent Unix time in seconds
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
PHPtime()
JavaInstant.now().getEpochSecond()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()
Gotime.Now().Unix()
RubyTime.now.to_i
Bashdate +%s
MySQLUNIX_TIMESTAMP()
PostgreSQLEXTRACT(EPOCH FROM now())

Common pitfalls

  • Mixing seconds and milliseconds. JavaScript and Java often use milliseconds, most other systems seconds. Count the digits.
  • Forgetting the time zone. A timestamp has no zone, but a calendar date does. Decide whether you mean UTC or local time before converting a date.
  • Assuming local output is the same everywhere. The locale line follows your device settings, so two people may see different text for the same timestamp.

For hour-and-minute arithmetic use the time converter, to compare clock times between cities the time zone converter, and to turn clock-in times into billable hours the timesheet converter. The days between dates calculator counts the whole days between two calendar dates.

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds elapsed since midnight UTC at the start of 1 January 1970, not counting leap seconds. For example, 1700000000 is 22:13:20 UTC on 14 November 2023.

How do I convert a millisecond timestamp?

Divide it by 1,000 to get seconds, then enter the result. Millisecond values have 13 digits today, while second-based timestamps have 10.

Does a Unix timestamp depend on the time zone?

No. A timestamp identifies one absolute moment, the same for everyone. Only the calendar date and clock time that you derive from it change with the time zone.

What happens in 2038?

Software that stores Unix time as a signed 32-bit number overflows after 03:14:07 UTC on 19 January 2038, since 2,147,483,647 is the largest value it can hold. Systems with 64-bit time values are not affected.

References

  1. The Open Group, POSIX.1 Base Definitions: Seconds Since the Epoch
  2. RFC 3339, Date and Time on the Internet: Timestamps

Cite this converter and page

If you use this page in your work, you can cite it as:

Reeliy Editorial Team. (2026). Unix Timestamp Converter. Reeliy. https://reeliy.com/converters/unix-time-converter“Unix Timestamp Converter.” Reeliy, 2026, https://reeliy.com/converters/unix-time-converter.