TIME

Unix Timestamp Converter

Paste a Unix timestamp to see its date, or a date to get its timestamp. The unit is detected from the number of digits: 1700000000 is 14 November 2023, 22:13:20 UTC.

Runs in your browser. Nothing you enter is sent to a server.

Current Unix time 1700000000 ms 1700000000000
1700000000, 1700000000000, 2026-11-18 20:45:00, or 2026-11-18T13:45:00Z.
Timestamp unit
Date in UTC 2023-11-14 22:13:20

Tuesday · UTC+00:00 · read as seconds (detected)

Seconds
1700000000
Milliseconds
1700000000000
Microseconds
1700000000000000
Nanoseconds
1700000000000000000
ISO 8601, UTC
2023-11-14T22:13:20Z
RFC 2822 / HTTP date
Tue, 14 Nov 2023 22:13:20 GMT
Advertisements

Seconds, milliseconds, microseconds or nanoseconds?

Different systems count Unix time in different units. The converter reads the unit from the number of digits; pick one by hand if it guesses wrong.

UnitDigits todayExampleUsed by
Seconds101700000000Unix date +%s, PHP time(), Python time.time(), JWT exp
Milliseconds131700000000000JavaScript Date.now(), Java System.currentTimeMillis()
Microseconds161700000000000000PostgreSQL internals, Python time.time_ns() // 1000
Nanoseconds191700000000000000000Go time.Now().UnixNano(), InfluxDB, Prometheus

Dates you can type

  • 2026-11-18 or 2026/11/18: midnight in the selected time zone.
  • 2026-11-18 20:45 or 2026-11-18T20:45:00.250: that time in the selected time zone.
  • 2026-11-18T13:45:00Z or 2026-11-18 20:45+07:00: the time zone you typed wins.
  • 18 Nov 2026 20:45 and HTTP dates such as Wed, 18 Nov 2026 13:45:00 GMT.

Getting the current timestamp in code

LanguageSeconds
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
PHPtime()
Gotime.Now().Unix()
JavaInstant.now().getEpochSecond()
MySQLUNIX_TIMESTAMP()
PostgreSQLEXTRACT(EPOCH FROM now())
Shelldate +%s

Example

1700000000 is Tuesday 14 November 2023, 22:13:20 UTC, which is Wednesday 15 November 2023, 05:13:20 in Jakarta (UTC+07:00). The same instant as milliseconds is 1700000000000.

Questions

What is a Unix timestamp?

The number of seconds since 1 January 1970, 00:00:00 UTC, not counting leap seconds. It is the same everywhere in the world at a given moment, which is why programs store times this way. 0 is the start of 1970; negative numbers are earlier dates.

How do I know if a timestamp is in seconds or milliseconds?

Count the digits. For dates between 1973 and 5138, seconds have 10 or 11 digits, milliseconds 13 or 14 (JavaScript's Date.now()), microseconds 16 or 17, and nanoseconds 19 (Go and many databases). The converter detects this, and you can override it.

Which time zone does a date I type use?

The one selected under the input, which starts as your own. Add an offset to the date (2026-11-18 20:45+07:00) or a Z for UTC to ignore the selection.

What happens in the year 2038?

Programs that store Unix time in a signed 32-bit integer run out on 19 January 2038 at 03:14:07 UTC (2147483647). This converter uses 64-bit numbers and works far beyond that.

Are timestamps affected by daylight saving time?

No. A timestamp is always UTC. Only the date shown for a time zone changes. When you type a local time that falls in a daylight-saving gap, such as 02:30 on the spring change, it is moved forward to the first valid time.

Is my data sent anywhere?

No. The conversion runs in your browser.

Support this site

The tools are free and need no account. If one saved you time, a small donation helps keep them running.

Want a tool or feature? Suggest it for free, or donate and write your request in the message. Supporters' requests are looked at first.