Convert between Unix timestamp and human-readable date
输入时间戳Enter Timestamp
输入日期时间Enter Date & Time
💡 关于时间戳💡 About Timestamps
Unix 时间戳是自 1970-01-01 00:00:00 UTC 起的秒数(JavaScript 使用毫秒)。
本工具自动识别 10 位(秒)和 13 位(毫秒)时间戳。
负数时间戳支持 1970 年之前的日期。
Unix timestamp is seconds since 1970-01-01 00:00:00 UTC (JavaScript uses milliseconds).
This tool auto-detects 10-digit (seconds) and 13-digit (milliseconds) timestamps.
Negative timestamps support dates before 1970.
How to Use This Tool使用说明
The current Unix timestamp is displayed automatically at the top of the page.
To convert a timestamp to a date, enter the Unix timestamp (seconds or milliseconds) in the input field.
To convert a date to a timestamp, use the date/time picker to select your desired date and time.
Click the unit toggle to switch between seconds and milliseconds.
Results are shown in multiple formats: ISO 8601, UTC, and local time.
页面顶部自动显示当前 Unix 时间戳。
要将时间戳转换为日期,在输入框中输入 Unix 时间戳(秒或毫秒)。
要将日期转换为时间戳,使用日期时间选择器选择目标日期和时间。
点击单位切换按钮在秒和毫秒之间切换。
结果以多种格式显示:ISO 8601、UTC 和本地时间。
Frequently Asked Questions常见问题
What is a Unix timestamp? — A Unix timestamp (also called Epoch time) is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC. It is a standard way to represent time in computing.
Seconds vs milliseconds? — Most Unix systems use seconds (10 digits). JavaScript uses milliseconds (13 digits). This tool auto-detects which format you are using based on the number length.
Why do I see a different date? — This is likely a timezone issue. The tool shows both UTC and your local timezone. APIs often return UTC timestamps, which may differ from your local time by several hours.