⚡ Curated dev resources & dealsSponsored
DevToolBayFree Developer Tools

Unix 时间戳转换

Unix 时间戳双向转换:10/13 位自适应、本地/UTC/ISO/相对时间一键对照、日期选择器生成未来时间。

Timestamp → date

Date → timestamp

About the epoch

A Unix timestamp counts seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds. Values of 10–11 digits are treated as seconds, 12–14 as milliseconds (the split sits around the year 33658, so both interpretations are unambiguous for practical dates). Negatives map to dates before 1970. The local row reflects your device timezone; the ISO row is always UTC with the Z suffix.

如何使用Unix 时间戳转换

输入 epoch 值——10 位秒还是 13 位毫秒按量级自动识别——同屏给出本地时间、UTC 与 ISO 8601,加上当前时间戳作为活参照。反向转换同样成立,日期选择器让生成未来时间戳变得容易。

粘贴多行日志,每行被识别的时间戳逐一翻译——把跨日志、跨单位写法的事故窗口对齐起来,这是最快的方式。三个经典坑都可见:10 与 13 位混用、时区解读、长得像时间戳的 Excel 序列日期。

相关工具