时间戳转换

Unix 时间与日期互转,带实时时钟

Current time

Unix (seconds)1774680307
Unix (milliseconds)1774680307542

Local: Sat Mar 28 2026 06:45:07 GMT+0000 (Coordinated Universal Time)

Timestamp → date

Enter a Unix value. Values with absolute magnitude ≥ 100,000,000,000 are treated as milliseconds; smaller integers as seconds.

Date → timestamp

Fill local date/time fields, or paste an ISO 8601 string (ISO takes precedence when non-empty).

相关工具

常见问题

两者都支持。绝对值小于 100,000,000,000 的整数会按秒处理;更大的数值会按毫秒处理。输出会同时显示秒和毫秒两种结果。

年/月/日/时/分/秒这些数字字段会按你的本地时区解释。ISO 字符串会按 JavaScript Date 的标准规则解析(存在 Z 或 offset 时会生效)。

Now 填入当前时刻。Start of today 设置为当天本地时间 00:00:00。Start of year 设置为当年 1 月 1 日本地时间 00:00:00。

因为实时钟每秒更新一次,方便你在测试 API 或查看日志时复制最新的 Unix 时间戳。