时间戳转换:Unix 时间秒数 ↔ 人类时间

Unix 时间戳(从 1970-01-01 起的秒数)是程序世界的通用时间语言,但 1736123456 到底是哪一天,没有工具谁也算不清。这个转换器做两件事:时间戳转日期和日期转时间戳,支持秒级精度,并一键获取当前时间戳。

典型场景

  • 看日志:服务器日志里的时间戳是秒数,转成日期才知道事故发生在几点。
  • 生成参数:写脚本或调接口需要当前时间戳,点一下复制。
  • 排查时区:转换时注意区分 UTC 与本地时区,很多时间戳坑都是时区造成的。

怎么用

输入一个时间戳,立即显示对应的本地时间与 UTC 时间;反过来输入日期,也能得到时间戳。支持常见格式的日期输入。

Timestamp Converter: Unix seconds ↔ human time

Unix timestamps (seconds since 1970-01-01) are the universal time language of software, but 1736123456 means nothing to most of us without a tool. This converter does both directions: timestamp → date and date → timestamp, second precision, plus a one-click "now" button.

Typical cases

  • Reading logs: server logs show seconds — convert to know when an incident happened.
  • Scripting: grab the current timestamp for scripts or API params in one click.
  • Timezone debugging: watch UTC vs local time — most timestamp bugs come from timezones.

How to use

Type a timestamp to see local and UTC time instantly; type a date to get the timestamp back. Common date formats are accepted.