Unix 时间戳转换器

当前 Unix 纪元时间

Unix → 人类可读

自动检测秒、毫秒、微秒或纳秒

输入 Unix 时间戳以查看可读日期

人类可读 → Unix

选择日期以转换为 Unix 时间戳

关于此工具

Unix Timestamp 转换器 已本地化为简体中文。可用于验证、转换、检查和导出结果,无需把数据上传到服务器。

使用方法

Unix Timestamp 转换器 已本地化为简体中文。可用于验证、转换、检查和导出结果,无需把数据上传到服务器。

限制与重要说明

Unix Timestamp 转换器 已本地化为简体中文。可用于验证、转换、检查和导出结果,无需把数据上传到服务器。

Technical Details

Edge Cases & Tricky Inputs

  • Timestamps before 1970-01-01 (negative values) are supported and converted correctly.
  • Millisecond timestamps (13 digits) are auto-detected and handled differently from second timestamps (10 digits).
  • Year 2038 problem: 32-bit systems overflow at 2147483647 — this tool uses 64-bit and handles dates far beyond 2038.

Performance & Processing

  • Conversion uses JavaScript's native Date object — results are identical to browser's date handling.
  • Timezone offset calculations respect the user's system locale settings.

Developer Notes

  • Unix epoch is defined as 1970-01-01T00:00:00Z (midnight UTC on January 1, 1970).
  • The tool displays both local time and UTC for every conversion.

Known Limitations

  • Dates before year 0001 or after year 9999 are outside the representable range.
  • Leap seconds are not accounted for (consistent with JavaScript Date behavior).

Related Tool Collections