Free tools

Epoch converter

Paste a Unix timestamp to see its date, or pick a date to get its timestamp, in any time zone.

The current Unix epoch time is

seconds
milliseconds

Timestamp to date

Read as

Read as seconds

UTC
Tuesday, December 1, 2026 at 11:02:17 PM UTC
Time zone
Tuesday, December 1, 2026 at 11:02:17 PM UTC
ISO 8601
2026-12-01T23:02:17.000Z
RFC 2822
Tue, 01 Dec 2026 23:02:17 +0000
Relative
now
Seconds
1796166137
Milliseconds
1796166137000
Microseconds
1796166137000000
Nanoseconds
1796166137000000000

Start and end

Start
1796083200
End
1796169599

Date to timestamp

In UTC

Seconds
1796166120
Milliseconds
1796166120000
ISO 8601
2026-12-01T23:02:00.000Z

Timestamps are UTC and ignore leap seconds, as Unix time does. Dates use your browser's clock.

What epoch time is

Unix time, or epoch time, is the number of seconds since January 1, 1970 at midnight UTC. At any given moment it is the same number everywhere: a time zone only changes how you show it. Databases, logs, APIs and JWTs store dates this way. JavaScript and Java count in milliseconds, and some systems in micro or nanoseconds, so this converter reads the unit from the number's length.

Epoch time in code

The current Unix timestamp in seconds, and a timestamp back to a date, in the languages developers ask about most.

LanguageCurrent timestampTimestamp to date
JavaScriptMath.floor(Date.now() / 1000)new Date(ts * 1000).toISOString()
Pythonimport time; int(time.time())datetime.fromtimestamp(ts, tz=timezone.utc)
JavaInstant.now().getEpochSecond()Instant.ofEpochSecond(ts)
Gotime.Now().Unix()time.Unix(ts, 0).UTC()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(ts)
PHPtime()date('c', $ts)
RubyTime.now.to_iTime.at(ts).utc
RustSystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()UNIX_EPOCH + Duration::from_secs(ts)
SwiftInt(Date().timeIntervalSince1970)Date(timeIntervalSince1970: ts)
KotlinInstant.now().epochSecondInstant.ofEpochSecond(ts)
PostgreSQLEXTRACT(EPOCH FROM now())::bigintto_timestamp(ts)
MySQLUNIX_TIMESTAMP()FROM_UNIXTIME(ts)
Shelldate +%sdate -u -d @ts # macOS: date -u -r ts

Plan your team's on-call turns

Put who is on call each week on a free team calendar and share the link. No sign up.

Open the team calendar

Questions

What is epoch time?

The number of seconds since January 1, 1970 at 00:00:00 UTC, also called Unix time or a Unix timestamp. 0 is that moment, 86400 is one day later, and a negative number is a date before 1970.

What is the current epoch time?

It was 1796166137 when this page was built, 2026-12-01T23:02:17Z. The clock at the top of this page shows it live, in seconds and milliseconds.

How do I tell seconds from milliseconds?

By the length. Today a timestamp in seconds has 10 digits, in milliseconds 13, in microseconds 16 and in nanoseconds 19. JavaScript's Date.now() and Java's System.currentTimeMillis() give milliseconds, Unix date +%s and Python's time.time() give seconds.

Does a Unix timestamp have a time zone?

No. A timestamp is the same everywhere at the same moment, counted from midnight UTC on January 1, 1970. Only the date and time it is shown as depend on a time zone: 1764547200 is December 1, 2025 at 00:00 in London and November 30 at 7:00 PM in New York.

What is the year 2038 problem?

Systems that store Unix time as a signed 32 bit number run out at 2147483647, on January 19, 2038 at 03:14:07 UTC. One second later the number wraps to a negative value and reads as December 13, 1901. 64 bit timestamps, used by most systems today, last for billions of years.

Does Unix time count leap seconds?

No. Every Unix day has exactly 86,400 seconds. On a leap second, clocks repeat or stretch a second, and the count stays in step with UTC dates. So a timestamp divided by 86400 is exactly the number of days since 1970.

How do I convert a Unix timestamp in Excel or Google Sheets?

For seconds in A1, use =A1/86400+DATE(1970,1,1) and format the cell as a date and time; for milliseconds, divide by 86400000. Back from a date: =(A1-DATE(1970,1,1))*86400. The result is in UTC.

Can an epoch timestamp be negative?

Yes, a negative timestamp is a date before January 1, 1970: -86400 is December 31, 1969 at 00:00 UTC. Most languages read them, but some older systems and spreadsheets do not.

More free tools

Reminders in Slack

TurnShift runs your team's on-call rotation in Slack, across time zones, and messages each person before their turn.

See TurnShift

Updates

  • New: the epoch converter. A live epoch clock, timestamps in seconds, milliseconds, micro or nanoseconds, any time zone, the start and end of a day, month or year, and the code for 13 languages and databases.