⏱️ 时间戳转换Timestamp Converter

Unix 秒/毫秒时间戳与日期互相转换,支持自定义格式、本地与 UTC 显示。所有计算在浏览器本地完成。Convert between Unix seconds/ms and dates, with custom format and local/UTC display. All computed locally.

① 当前时间① Current time

② 时间戳 / 日期 互转② Convert

③ 日期加减③ Date math

以②中的输入时间为基准,加减一段时间,得到新的时间戳与日期(沿用②的格式与时区)。Add or subtract time from the input in ② to get a new timestamp and date (uses the format & timezone from ②).

📚 关于 Unix 时间戳📚 About Unix timestamps

Unix 时间戳是自 1970-01-01 00:00:00 UTC(Unix 纪元)以来的秒数(本工具同时支持毫秒)。它是全球通用的时刻表示:不依赖时区、夏令时与地区习惯,数据库与 API 广泛使用。缺点是不直观——本工具就是为此而生的。A Unix timestamp counts seconds since 1970-01-01 00:00:00 UTC (the Unix epoch); this tool also accepts milliseconds. It is a timezone-independent, DST-proof universal moment representation used by databases and APIs — just not human-readable, which is what this tool is for.

需要注意:① 同一天历时刻在不同时区对应不同时间戳,反之同一时间戳在不同时区显示为不同时刻——转换时务必选对时区;② 当前是 32 位秒级时间戳的时代(2038 年 1 月 19 日溢出,即「2038 问题」),64 位系统不受影响;③ 秒级(10 位)与毫秒级(13 位)极易混淆,本工具按位数自动识别,13 位按毫秒处理。Notes: ① the same wall-clock moment has different timestamps across timezones (and vice versa) — pick the right timezone; ② we are in the era of 32-bit second timestamps (overflow on 2038-01-19, the “Year 2038 problem”; 64-bit systems are safe); ③ 10-digit (seconds) vs 13-digit (milliseconds) are easily confused — this tool auto-detects by digit count.

使用说明How to use

怎么用How to use
  1. 输入 Unix 时间戳或日期Enter a Unix timestamp or date
  2. 自动双向转换,可选自定义格式与时区Two-way conversion; custom format and timezone
  3. 查看秒/毫秒与本地/UTC 时间See sec/ms and local/UTC time

示例:1718000000 → 2024-06-10Example: 1718000000 → 2024-06-10

全程在你的浏览器本地完成,文本不会上传服务器。Runs entirely in your browser; your text is never uploaded.