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
Timestamp to date
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.
| Language | Current timestamp | Timestamp to date |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | new Date(ts * 1000).toISOString() |
| Python | import time; int(time.time()) | datetime.fromtimestamp(ts, tz=timezone.utc) |
| Java | Instant.now().getEpochSecond() | Instant.ofEpochSecond(ts) |
| Go | time.Now().Unix() | time.Unix(ts, 0).UTC() |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.FromUnixTimeSeconds(ts) |
| PHP | time() | date('c', $ts) |
| Ruby | Time.now.to_i | Time.at(ts).utc |
| Rust | SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs() | UNIX_EPOCH + Duration::from_secs(ts) |
| Swift | Int(Date().timeIntervalSince1970) | Date(timeIntervalSince1970: ts) |
| Kotlin | Instant.now().epochSecond | Instant.ofEpochSecond(ts) |
| PostgreSQL | EXTRACT(EPOCH FROM now())::bigint | to_timestamp(ts) |
| MySQL | UNIX_TIMESTAMP() | FROM_UNIXTIME(ts) |
| Shell | date +%s | date -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.
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
- Team calendar makerPlan shifts on a shared weekDrag shifts on a week, type who is on them, make them repeat, then share the link or print it.
- Week numbersWhat week it is, and every weekWhat week it is today, and every week of the year with its Monday and Sunday. ISO or US weeks, in your calendar too.
- Printable calendarsThe year on one page, with holidaysThe whole year on one page, with a country's public holidays and the week numbers. US Letter or A4, portrait or landscape.
- Time zone mapDay and night, liveThe world's time zones on a map, with the night drawn as it is right now. Zoom down to the cities for their time, or read every zone in the list under it.
- Shift patterns2-2-3, Pitman, DuPont and more2-2-3, Pitman, DuPont, 4 on 4 off, Kelly, 9/80 and 8 hour shift systems on a calendar. Put your people on the crews and share it.
- Rotation makerWho is on call, week by weekType names, pick a turn length, get who is on call each week. Print it, add it to calendars or paste it in Slack. Chore charts too.
- Overtime and shift hours calculatorHours, overtime and pay for a weekType each day's start, end and break, and get the week in hours and decimals, with overtime, night hours and pay.
- Day counterDays and working days between datesDays between two dates, and working days without weekends and your country's public holidays. Or the date 10 working days from now.
- Day of the yearDay number and julian dateWhat day of the year it is, how many days are left, today's julian date, and a julian calendar for each year.
- Public holidaysBy country, with long weekendsEvery public holiday of 2027 and 2028 in ten countries and Germany's 16 states, with the long weekends, the bridge days, a calendar file and a free JSON API.
- Time zone converterEST to IST, UTC to PST and moreConvert a time between two time zones or abbreviations, with daylight saving time counted. 141 conversions and a free JSON API.
- World clockCities on one timeline, and when to meetSeveral cities on one timeline: drag the time, read every clock at once and find the hours that suit everyone. With a link to share.
- Daylight saving timeThe next clock change, in any countryWhen the clocks go forward and back in any city or country: the next change with a countdown, the dates of the next five years, and each country's next change.
Reminders in Slack
TurnShift runs your team's on-call rotation in Slack, across time zones, and messages each person before their turn.
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.