Unix 时间戳转换 / Unix Timestamp Converter
功能介绍(中文)
Unix 时间戳是指从 1970 年 1 月 1 日 00:00:00 UTC 起经过的秒数或毫秒数,是跨平台表示时间的事实标准,广泛出现在接口返回、日志和数据库中。
本工具支持双向转换:输入时间戳时自动识别秒级还是毫秒级,同时显示本地时间与 UTC 时间;输入日期时间时输出秒级和毫秒级时间戳,并可切换单位只显示需要的结果。日期解析支持 YYYY-MM-DD HH:mm:ss、中文日期和带时区的 ISO 8601 格式。
还提供“填入当前”快捷按钮,一键写入当前时间戳或当前日期时间,方便对照和调试。
Overview (English)
A Unix timestamp is the number of seconds or milliseconds elapsed since 1970-01-01 00:00:00 UTC. It is the de facto cross-platform representation of time in APIs, logs and databases.
This tool converts both ways: given a timestamp it detects seconds versus milliseconds and shows local and UTC time; given a date it outputs seconds and milliseconds, with a unit switch to show only what you need. Parsing supports YYYY-MM-DD HH:mm:ss, Chinese dates and ISO 8601 with timezone.
A fill-current shortcut writes the current timestamp or date instantly for quick checks and debugging.
功能特点(中文)
- 秒级 / 毫秒级时间戳自动识别
- 同时显示本地时间与 UTC 时间
- 中文日期、ISO 8601 带时区均可解析
- 单位可选自动 / 秒 / 毫秒
- 一键填入当前时间或时间戳
Features (English)
- Auto-detect seconds versus milliseconds
- Show both local time and UTC time
- Parses Chinese dates and ISO 8601 with timezone
- Unit selector: auto / seconds / milliseconds
- One-click fill with the current value
常见问题 / FAQ
秒级时间戳和毫秒级时间戳怎么区分?
秒级时间戳通常是 10 位数字,毫秒级是 13 位。本工具默认按数值大小自动判断,也可以手动指定单位以避免歧义。
How to tell seconds from milliseconds?
Seconds are usually 10 digits and milliseconds 13. This tool auto-detects by magnitude by default, and you can set the unit explicitly to avoid ambiguity.
为什么时间戳转出来的时间和我本地差 8 小时?
时间戳本身基于 UTC,没有时区信息。工具同时显示本地时间和 UTC 时间:如果看 UTC 会比北京时间早 8 小时,请以本地时间一栏为准。
Why is the converted time 8 hours off from my local time?
Timestamps are based on UTC and carry no timezone. The tool shows both local and UTC time; UTC appears 8 hours earlier than Beijing time, so use the local time row.