Unix time and date conversionUnix 时间戳与日期转换

Timestamp converter for Unix time, UTC, and local dates.Unix 时间戳、UTC 和本地日期转换器。

Convert seconds or milliseconds to readable dates, and turn local or UTC date-times back into Unix timestamps. Useful for logs, APIs, databases, and debugging.把秒或毫秒时间戳转换为可读日期,也可以把本地或 UTC 日期时间转回 Unix 时间戳,适合日志、API、数据库和调试。

UTCLocal timeUnix secondsUnix millisecondsBrowser-based浏览器本地运行
Unix seconds当前秒级时间戳
-
Unix milliseconds当前毫秒时间戳
-
Local time当前本地时间
-

Timestamp to date时间戳转日期

Local
-
UTC
-
ISO 8601
-

Date to timestamp日期转时间戳

Seconds
-
Milliseconds毫秒
-
ISO 8601
-

Seconds or milliseconds?秒级还是毫秒级?

Most Unix timestamps use 10 digits for seconds. JavaScript and many frontend logs use 13 digits for milliseconds.常见 Unix 时间戳是 10 位秒级,JavaScript 和很多前端日志常用 13 位毫秒级。

Timezone handling时区处理

Timestamp values are absolute moments. This tool shows local time, UTC, and ISO output so you can compare logs across systems.时间戳表示绝对时刻。本工具同时展示本地时间、UTC 和 ISO,便于跨系统排查日志。

Common use cases常见用途

  • Debug API timestamps and database rows.调试 API 时间和数据库记录。
  • Convert server logs to readable dates.把服务器日志时间转换为可读日期。
  • Generate test timestamps for code and queries.为代码和查询生成测试时间戳。

Privacy隐私说明

All conversion happens in your browser. No timestamp or date input is submitted to IdeaFactory Lab.所有转换都在浏览器本地完成,输入的时间不会提交给 IdeaFactory Lab。