时间戳转换

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

Current time

Unix (seconds)1777753312
Unix (milliseconds)1777753312192

Local: Sat May 02 2026 20:21:52 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).

Convert Unix timestamps to dates and back, with a live clock

Logs, databases, and APIs love Unix timestamps; humans don't. A timestamp converter handles both directions — epoch seconds or milliseconds in, ISO and human-readable dates out, plus the reverse — and shows the current time as a live clock so you can grab a fresh value while debugging.

Use the converter when you need to

Read a timestamp from a log line

Paste epoch seconds or milliseconds and instantly see the date in your local timezone and UTC.

Construct a test value for an API

Build a date in human form and copy the corresponding Unix timestamp for use in a request body.

Check token expiry by hand

Decode a JWT, copy the exp claim, and convert it to a real date to confirm whether the token is expired.

How to convert timestamps quickly

  1. 1

    Paste a Unix timestamp or pick a date in the form fields.

  2. 2

    View the converted ISO string, local date, and UTC date in real time.

  3. 3

    Use Now, Start of today, or Start of year buttons for common reference points.

Common timestamp workflows

Investigate a log entry

Convert the epoch in the log to local time to align with what a customer reported.

Verify token freshness

Confirm a recently issued JWT's exp claim corresponds to the lifetime your auth provider configured.

Write API tests with stable dates

Generate a known epoch value and use it across tests for deterministic results.

相关工具

常见问题

两者都支持。绝对值小于 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 时间戳。