Toolbye时间戳工具

Unix 时间戳转日期

将 10 位秒级或 13 位毫秒级时间戳转换为可读的本地时间和 UTC。

解决什么问题

当日志、接口响应或数据库字段只给出数字时间戳时,用这个指南快速判断对应日期。

使用步骤

  1. 从日志、接口响应或数据库字段复制时间戳。
  2. 打开主时间戳工具,粘贴到“时间戳转日期”面板。
  3. 确认该值是秒级还是毫秒级。
  4. 复制适合当前流程的本地时间、UTC 或 ISO 输出。

秒级与毫秒级示例

1700000000
1700000000000
1700000000 是秒级;1700000000000 是毫秒级。单位正确时它们可以表示同一时刻。

如果结果偏离几十年,通常是单位识别错了。

常见错误

10 digits vs 13 digits

Unix seconds often use 10 digits, while JavaScript millisecond timestamps usually use 13 digits.

Timezone expectations

Local time and UTC can show different clock values for the same moment.

Copied whitespace

Trim spaces or line breaks copied from logs before converting.

Unix 时间戳转日期常见问题

How do I know if a timestamp is seconds or milliseconds?

10-digit values are usually seconds; 13-digit values are usually milliseconds.

Why does UTC differ from local time?

They represent the same instant in different timezones.

Can I copy ISO output?

Yes. Use the main tool to copy ISO 8601 or another output template.

相关时间戳指南

日期转 Unix 时间戳

将可读日期时间转换为 Unix 秒级和毫秒级,用于 API、日志和数据库字段。

毫秒级时间戳转换器

转换 13 位毫秒级时间戳,并与 10 位 Unix 秒级对比,避免单位混用。

相关工具

JSON 格式化

格式化、压缩和校验 JSON,并定位语法错误。

Base64 编码/解码

完成文本或图片的 Base64 编解码转换。