DevToolBox免费
博客

Unix 时间戳转换器

在 Unix 时间戳(秒/毫秒)与人类可读日期之间转换。自动检测格式,显示 ISO 8601、相对时间和时区。

当前 Unix 时间戳:
1772199845

转换结果

输入 Unix 时间戳或日期字符串并点击转换

免费在线 Unix 时间戳转换器

将 Unix 时间戳(纪元时间)转换为人类可读的日期格式,反之亦然。自动检测秒或毫秒输入格式,支持 ISO 8601、UTC、本地时间和相对时间显示。

如何转换 Unix 时间戳

  1. 输入 Unix 时间戳或日期字符串
  2. 工具自动检测输入格式
  3. 点击转换查看所有日期格式
  4. 点击复制按钮复制值

常见问题

什么是 Unix 时间戳?
Unix 时间戳是自 1970 年 1 月 1 日 00:00:00 UTC 以来经过的秒数,广泛用于编程、数据库和 API。
秒和毫秒时间戳有什么区别?
秒级时间戳通常为 10 位数字,毫秒级为 13 位。JavaScript 的 Date.now() 返回毫秒。
什么是 2038 年问题?
32 位系统将时间戳存储为有符号 32 位整数,2038 年 1 月 19 日会溢出。64 位系统不受影响。
自动检测如何工作?
13 位及以上数字视为毫秒,10 位及以下视为秒。非数字输入按日期字符串解析。
使用什么时区?
Unix 时间戳始终为 UTC。工具同时显示 UTC 和您的本地时区。

相关工具

𝕏 Twitterin LinkedIn

评价此工具

3.9 / 5 · 118 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

使用方法

  1. Enter a Unix timestamp to convert to a human-readable date
  2. Or enter a date string to convert to a Unix timestamp
  3. The tool auto-detects seconds vs milliseconds
  4. View results in UTC, local time, and ISO format

常见用途

  • Converting API timestamps to readable dates
  • Debugging date-related issues
  • Comparing timestamps across systems
  • Working with JWT token expiration times

常见问题

What is a Unix timestamp?
A Unix timestamp is the number of seconds elapsed since January 1, 1970 00:00:00 UTC (the Unix epoch). It's a universal way to represent time in computing.
What's the difference between seconds and milliseconds?
Unix timestamps in seconds are 10 digits (e.g., 1700000000), while milliseconds are 13 digits (e.g., 1700000000000). JavaScript uses milliseconds, most systems use seconds.
Does this tool handle timezones?
Yes. The tool shows both UTC and your local timezone when converting timestamps, so you can see the exact time in both.