Unix 时间戳转换
时间戳 ↔ 日期时间双向换算,秒/毫秒自动识别,本地时区、UTC、ISO 8601 一起看。
自动识别 10 位(秒)与 13 位(毫秒)时间戳;时间为浏览器本地时区。
中文介绍
机票、酒店、签证系统里常出现一串数字的「Unix 时间戳」——它是从 1970-01-01 00:00:00 UTC 起算的秒数(或毫秒数)。跨境订票、核对签证有效期、调试接口时,都要在时间戳和日期之间来回换算。
这个工具支持秒/毫秒自动识别,双向换算,并同时给出本地时间、UTC 时间与 ISO 8601 三种格式。
常见问题
10 位和 13 位有什么区别?
10 位是「秒」,13 位是「毫秒」。比如 1700000000 是 2023-11-15 06:13:20 UTC(秒);同一时刻的毫秒值是 1700000000000。
为什么显示的时间和我算的不一样?
本工具按你浏览器的本地时区显示,并同时给出 UTC 时间。跨时区比对应以 UTC 那栏为准。
时间戳有负数吗?
有。1970 年以前的日期对应负数时间戳,输入负号即可换算。
English
Airline, hotel and visa systems often show a "Unix timestamp" — the number of seconds (or milliseconds) since 1970-01-01 00:00:00 UTC. Cross-border bookings, visa-validity checks and API debugging all require switching between timestamps and dates.
This tool auto-detects seconds vs milliseconds, converts both ways, and shows local time, UTC and ISO 8601 at once.
FAQ
What is the difference between 10 and 13 digits?
10 digits are seconds and 13 are milliseconds. For example 1700000000 is 2023-11-15 06:13:20 UTC (seconds); the millisecond value for the same moment is 1700000000000.
Why does the result differ from my own calculation?
This tool shows your browser's local time and also gives UTC. For cross-zone comparison, use the UTC column.
Can timestamps be negative?
Yes. Dates before 1970 are negative timestamps — just type the minus sign.