Epoch转换器

常用示例

Unix Epoch Start
0
Year 2000 (Y2K)
946684800
New Year 2022
1640995200
Year 2038 Problem
2147483647
Milliseconds Example
1640995200000
Famous Timestamp
1234567890

使用提示

  • Unix时间戳通常是10位数字(秒)或13位数字(毫秒)
  • 转换器根据数字位数自动检测时间戳格式
  • 默认情况下,所有转换都在UTC时区执行
  • 使用ISO 8601格式以实现跨系统的最大兼容性
  • 负时间戳表示1970年1月1日之前的日期

如何使用此转换器

  1. 在输入字段中输入Unix时间戳,或点击"使用当前时间"获取当前时间戳
  2. 从下拉菜单中选择您首选的输出格式
  3. 转换后的日期将立即出现在结果字段中
  4. 点击复制按钮将结果复制到剪贴板

常见用途

  • 转换数据库时间戳以便人类可读显示
  • 调试应用程序中与时间相关的问题
  • 在不同编程语言时间格式之间转换
  • 分析带有时间戳数据的日志文件
  • 与使用Unix时间戳的API工作

Technical Specifications

Range: -2,147,483,648 to 2,147,483,647
Precision: 1 second (32-bit) / 1 millisecond (64-bit)
Format: Signed integer
Year 2038: 32-bit systems will overflow

Frequently Asked Questions

Q: What's the difference between seconds and milliseconds?

Seconds are the standard Unix timestamp format. Milliseconds include 3 additional digits for sub-second precision.

Q: Why does epoch start from 1970?

January 1, 1970 was chosen as a convenient round number close to the beginning of computing systems.

Q: What happens in 2038?

32-bit systems will experience overflow, but 64-bit systems can handle dates far beyond 2038.