Monu Tools

Unix 時間戳轉換器

將 Unix 時間戳轉換為可讀日期,也可反向轉換:UTC、本地時間、ISO 8601 和相對時間。自動識別秒和毫秒。

如何使用 時間戳

  1. 01

    輸入 Unix 時間戳(秒或毫秒)或日期。

  2. 02

    自動識別是秒還是毫秒。

  3. 03

    讀取 UTC、本地、ISO 和相對值,或點擊 Now 獲取當前時間。

What a Unix timestamp is

A Unix timestamp is the number of seconds that have elapsed since 1 January 1970 at midnight UTC, a moment known as the epoch. Because it is just a count from a fixed point in UTC, it represents an exact instant with no time zone attached, which is why logs, APIs and databases love it.

What this converter does

It turns an epoch value into a readable date and a date back into an epoch, showing the result as UTC, your local time, an ISO 8601 string and a human relative description like "3 hours ago". A Now button fills in the current time.

Seconds and milliseconds

Seconds and milliseconds are detected automatically: a 10-digit number is read as seconds and a 13-digit number as milliseconds, which covers almost everything you will paste from a log or an API response.

Why timestamps and ISO 8601

Timestamps beat formatted date strings for storage and exchange because they are unambiguous, easy to sort and independent of time zone or locale. The usual pattern is to store the timestamp and convert it to a local, formatted date only when you display it to a person.

ISO 8601 (for example 2026-06-30T14:05:00Z) is the international standard text format for dates and times; the trailing Z means UTC. The relative value is handy for quickly judging how old a log line or record is.

The Year 2038 problem and privacy

One thing to know: systems that store Unix time in a signed 32-bit integer overflow on 19 January 2038, the so-called Year 2038 problem. Modern 64-bit systems are unaffected. Everything here runs in your browser, so nothing you enter is uploaded.

常見問題

是秒還是毫秒?

兩者皆可。10 位數字按秒讀取,13 位數字按毫秒讀取,因此可以依賴自動識別。

顯示的是哪個時區?

UTC 和 ISO 8601 是絕對時間;本地值使用您瀏覽器的時區。

來源

嵌入此工具

將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。

<iframe src="https://monu.tools/embed/zh-Hant/timestamp-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相關工具