将 Unix 时间戳转换为可读日期,也可反向转换:UTC、本地时间、ISO 8601 和相对时间。自动识别秒和毫秒。
如何使用 时间戳
输入 Unix 时间戳(秒或毫秒)或日期。
自动识别是秒还是毫秒。
读取 UTC、本地、ISO 和相对值,或点击 Now 获取当前时间。
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.
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 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.
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.
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/timestamp-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相关工具