时间戳转换
UpBox优盒工具箱,免费时间戳转换工具,秒 / 毫秒时间戳与本地时间、UTC、ISO 8601 双向换算,本地处理。
无需注册 · 数据不上传No sign-up · nothing uploaded
时间戳或日期Timestamp or date
0 s转换结果Converted
秒级时间戳—
毫秒级时间戳—
本地时间—
UTC 时间—
ISO 8601—
星期—
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
时间戳转换用于对接接口、排查日志时间:输入 10 位秒级或 13 位毫秒级数字,立刻得到本地时间、UTC、ISO 8601 与星期;反过来输入日期也能拿到时间戳。 Use this when wiring up APIs or reading log timestamps: a 10-digit seconds value or 13-digit milliseconds value becomes local time, UTC, ISO 8601 and a weekday — and a date goes the other way.
顶部的实时徽标每秒刷新当前秒级时间戳,方便直接对照日志。 The live badge refreshes the current seconds value every second, handy for matching log lines.
- 秒 / 毫秒自动识别Seconds and milliseconds detected
- 本地时间与 UTC 同时给出Local time and UTC side by side
- ISO 8601 与星期ISO 8601 plus weekday
- 实时当前时间戳Live current timestamp
使用说明
- 在左侧填入时间戳数字或可读日期。Enter a timestamp number or a readable date on the left.
- 点“转换”,右侧六项结果同时刷新。Click Convert and all six results refresh together.
- 不确定当前时间时可点“当前时间”,自动填入现在的毫秒时间戳。Use Now to fill in the current millisecond timestamp.
- 点“复制全部”把六项结果一次带到聊天或文档里。Copy all brings the six values into a chat or document at once.
常见问题
10 位和 13 位有什么区别?What is the difference between 10 and 13 digits?
10 位是秒级(Unix 经典格式),13 位是毫秒级(JavaScript Date.now 的格式),本工具按位数自动判断。10 digits are seconds (classic Unix), 13 are milliseconds (JavaScript Date.now); the tool decides by length.
时区怎么处理?How is the time zone handled?
本地时间按你电脑的系统时区显示,UTC 与 ISO 8601 固定为世界标准时间,便于跨时区对照。Local time follows your system zone; UTC and ISO 8601 stay in universal time for cross-zone comparison.
日期输入支持哪些格式?Which date formats are accepted?
常见写法都可以,例如 2025-01-01、2025-01-01 08:00:00、2025/01/01 或带时区的 ISO 字符串。Common forms work: 2025-01-01, 2025-01-01 08:00:00, 2025/01/01, or ISO strings with a zone.