代码、数据与二维码工具

日期转换器

在日期时间与Unix时间戳之间双向转换;日期输入明确选择浏览器本地时区或UTC,时间戳明确选择秒或毫秒,并输出Unix秒、毫秒、ISO UTC、本地时间和UTC时间。

优先本地处理无需注册隐私说明 ↗

Whole seconds from years 0001 through 9999.

Browser time zone is detected when the page loads.

使用步骤

如何使用

  1. Choose whether you are starting with a date and time or a Unix timestamp.
  2. Select the input time zone or timestamp unit, then enter the value.
  3. Convert and copy the Unix, ISO 8601, local, and UTC representations you need.

Time zone and unit are explicit

A date-time input can be interpreted in your browser’s local time zone or as UTC. A timestamp input must be marked as seconds or milliseconds. The result identifies the detected browser time zone and also includes an ISO 8601 UTC value.

Local clock changes need care

Browser-local conversion follows the time-zone rules available on your device. A local clock time skipped by a daylight-saving transition is rejected. A repeated clock time can still be ambiguous because a date-time field does not include an offset; use UTC or a timestamp when the exact instant matters.

常见问题

你可能还想知道

Are Unix timestamps tied to a time zone?

No. A Unix timestamp identifies an instant relative to the Unix epoch. Time zones only change how that instant is displayed.

Does the tool guess seconds or milliseconds?

No. You select the unit explicitly, avoiding errors caused by digit-count guessing.

Does conversion use a server?

No. It uses the browser Date and Intl APIs on this device.