跳到主要内容
uencoder

转换 between Unix timestamp, ISO 8601, and human-readable dates

Translate 时间值 之间 Unix epoch 第二, milliseconds, ISO 8601, 和本地/UTC 日期 strings.

  1. 1

    Timestamps come 在许多 forms: Unix 第二 (1700000000), milliseconds (1700000000000), ISO 8601 (2023-11-14T22:13:20Z), RFC 2822, 和 locale strings. Converting 之间它们是 frequent need 当 bridging APIs 和 databases.

  2. 2
    时间戳转换器 →

    Paste 时间戳在 任何常见格式化. tool detects 格式化和 输出所有 equivalents: Unix s, Unix ms, ISO 8601 UTC, 和 human-readable 在 selected timezones.

  3. 3
    时区转换器 →

    将 the timestamp 转换为 a specific timezone for display — essential for scheduling apps that show times in the user's local zone

常见问题

Unix 第二 vs milliseconds — 如何 I tell 它们 apart?
通过 magnitude. Unix 第二为 dates 之间 2001 和 2286 是 10 digits (1e9 到 1e10); milliseconds 是 13 digits (1e12 到 1e13). 如果数字有 13 digits, 它是 可能 milliseconds. tool auto-detects, 但总是验证 converted 日期是 reasonable.
为什么 my 时间戳转换到 不同日期在 另一个 timezone?
Unix 时间戳是 absolute (第二自 1970-01-01 UTC). 日期字符串 representation changes 通过 timezone: 1700000000 是 2023-11-14 22:13:20 UTC 但 2023-11-15 07:13:20 在 JST. moment 是相同; display differs.

解决此任务的工作流

相关工具