Epoch Converter: Unix Timestamp to Date and Back

Paste 1798761600 or type 2026-12-31 18:00 and get the other one instantly.

Unix time now…

Paste a Unix number in seconds or milliseconds, or type a date to get its timestamp.

Notable Unix timestamps

Round numbers and limits people look up, with the exact UTC moment each one reached.

Notable Unix timestamps
TimestampUTC date and timeWhy it matters
01970-01-01 00:00:00 UTCThe Unix epoch
1,000,000,0002001-09-09 01:46:40 UTCOne billion seconds
1,234,567,8902009-02-13 23:31:30 UTCThe famous 1234567890
1,500,000,0002017-07-14 02:40:00 UTC1.5 billion
1,700,000,0002023-11-14 22:13:20 UTC1.7 billion
1,800,000,0002027-01-15 08:00:00 UTC1.8 billion
2,000,000,0002033-05-18 03:33:20 UTCTwo billion
2,147,483,6472038-01-19 03:14:07 UTCLargest signed 32-bit value (the 2038 problem)
4,294,967,2952106-02-07 06:28:15 UTCLargest unsigned 32-bit value

Start of each year in Unix time

Midnight UTC on January 1. Useful for date ranges in queries and logs.

Year starts in Unix time
YearSecondsMilliseconds
202617672256001767225600000
202717987616001798761600000
202818302976001830297600000

Get the current Unix time in code

Each line returns whole seconds. For milliseconds in JavaScript, use Date.now() on its own.

Current Unix time by language
Language or toolCode
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
PHPtime()
JavaInstant.now().getEpochSecond()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()
Gotime.Now().Unix()
RubyTime.now.to_i
RustSystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()
Bash / macOS / Linuxdate +%s
PostgreSQLSELECT extract(epoch FROM now())::bigint
MySQLSELECT UNIX_TIMESTAMP()
Excel (from A1)=(A1-DATE(1970,1,1))*86400

How to use it

  1. Paste a Unix number or type a date.
  2. Pick the time zone for dates without an offset.
  3. Copy the format you need.

About this page

A Unix timestamp, also called epoch time or POSIX time, counts the seconds since midnight UTC on January 1, 1970. It has no time zone, which is why servers, databases and APIs use it: the same number means the same moment everywhere. 1798761600 is 00:00 UTC on January 1, 2027, which is 7:00 PM on December 31 in New York and 9:00 AM on January 1 in Tokyo.

Paste a number and the converter reads its unit from the number of digits. Ten digits are seconds (most Unix tools, PHP, Python time.time() rounded). Thirteen digits are milliseconds (JavaScript Date.now(), Java System.currentTimeMillis()). Sixteen are microseconds and nineteen are nanoseconds, common in Go, databases and tracing systems. If a number is ambiguous, set the unit yourself.

To go the other way, type a date. A date with Z or an offset, like 2026-12-31T23:00:00Z or 2027-01-01T08:00:00+09:00, already names its moment. A date without one, like 2026-12-31 18:00, is read in the time zone you pick, using that zone’s clock rules on that date. If the time falls in the hour skipped when clocks spring forward, the converter says so instead of guessing.

Common questions

What is epoch time?

The number of seconds that have passed since 00:00:00 UTC on January 1, 1970, not counting leap seconds. It is the same number in every time zone at the same moment.

How do I tell seconds from milliseconds?

Count the digits. A current timestamp in seconds has 10 digits; in milliseconds it has 13. The converter detects this for you and says which unit it used.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit number run out at 2147483647, which is 03:14:07 UTC on January 19, 2038. After that the number wraps to 1901. Modern systems use 64-bit numbers and are not affected.

Does Unix time count leap seconds?

No. Every Unix day is exactly 86,400 seconds, so a leap second is not counted. For almost every use this makes no difference.

Can a timestamp be negative?

Yes. Negative numbers are moments before 1970. -86400 is 00:00 UTC on December 31, 1969.

Last updated · How we check our numbers