将 Unix 时间戳转换为可读日期,并将格式化日期转换回 Unix 时间戳(双向转换)。
Input text
Result
工具选项
转换模式
Unix → 日期
日期 → Unix
时区选项
使用本地时间
使用 UTC
在转换的日期后显示 "UTC"(仅限 UTC 模式)
转换 Unix ↔ 日期
此工具将 Unix 时间戳(以秒为单位)转换为人类可读的日期格式(例如,YYYY-MM-DD HH:MM:SS),并将格式化日期转换回 Unix 时间戳。您可以选择 UTC 输出、本地时区输出,或提供自定义 UTC 偏移(例如,YYYY-MM-DD HH:MM:SS +XX:XX)。如果未提供偏移且未选择本地时区,则默认使用 UTC (+00:00)。
转换 Unix ↔ 日期 示例
点击尝试!
This example shows how Unix timestamps are converted into human-readable dates. Each timestamp represents the number of seconds that have elapsed since January 1, 1970 (UTC).
转换模式
Unix → 日期
日期 → Unix
时区选项
使用本地时间
使用 UTC
在转换的日期后显示 "UTC"(仅限 UTC 模式)
In this example, the UTC suffix is removed from the output. This might be useful for embedding timestamps into other formats or for cleaner display.
转换模式
Unix → 日期
日期 → Unix
时区选项
使用本地时间
使用 UTC
在转换的日期后显示 "UTC"(仅限 UTC 模式)
In this example, a plain human-readable timeframe is converted into a Unix timestamp. The UTC offset is treated as +00:00.
转换模式
Unix → 日期
日期 → Unix
时区选项
使用本地时间
使用 UTC
In this example, the UTC offset is provided after stating the timeframe with a space.
转换模式
Unix → 日期
日期 → Unix
时区选项
使用本地时间
使用 UTC