About This Tool
What is Unix 时间戳转换工具?
A tool for converting between Unix timestamps and human-readable date formats. Essential for development tasks such as server log analysis, API response interpretation, and database time data verification.
How to Use
- To convert a timestamp to a date, enter a number and click 'To Date'.
- To convert a date to a timestamp, enter a date and click 'To Timestamp'.
- Use the 'Now' button to see the current timestamp.
- Switch between seconds and milliseconds precision.
Key Features
- Bidirectional timestamp-to-date conversion
- Supports seconds (s) and milliseconds (ms)
- Instant current time check
- Timezone selection (UTC/Local)
- Field input and text input modes
Tips
- Unix timestamps represent seconds elapsed since January 1, 1970 00:00:00 UTC.
- JavaScript's Date.now() returns timestamps in milliseconds.
- The Year 2038 problem occurs when 32-bit systems overflow their timestamp values.
Unix 时间戳转换工具
在 Unix 时间戳和日期之间相互转换
当前时间: (秒)
转换为日期
转换为时间戳
-
-
:
:
Frequently Asked Questions
为什么有些时间戳是10位,有些是13位?▼
10位时间戳表示Unix纪元以来的秒数(如1700000000),13位表示毫秒(如1700000000000)。大多数服务端语言使用秒,而JavaScript的Date.now()和Java的System.currentTimeMillis()返回毫秒。
什么是2038年问题?▼
32位系统将Unix时间戳存储为有符号32位整数,将在2038年1月19日03:14:07 UTC溢出。此后时间戳变为负数,导致日期跳回1901年。现代64位系统不受影响。
处理时间戳时如何处理时区?▼
Unix时间戳始终是UTC——它表示一个绝对时间点,与时区无关。仅在显示时转换为当地时间。存储和传输时间戳使用UTC,在前端转换为用户的时区。