★LocalHost Run Under Construction
  • 首页
  • 文章
  • 工具
http://localhost
首页文章工具
全部工具›时间工具›转换 Unix ↔ 日期

转换 Unix ↔ 日期

将 Unix 时间戳转换为可读日期,并将格式化日期转换回 Unix 时间戳(双向转换)。

Input text

​

Result

​

工具选项

转换模式

Unix → 日期

日期 → Unix

时区选项

使用本地时间

使用 UTC

在转换的日期后显示 "UTC"(仅限 UTC 模式)

转换 Unix ↔ 日期

此工具将 Unix 时间戳(以秒为单位)转换为人类可读的日期格式(例如,YYYY-MM-DD HH:MM:SS),并将格式化日期转换回 Unix 时间戳。您可以选择 UTC 输出、本地时区输出,或提供自定义 UTC 偏移(例如,YYYY-MM-DD HH:MM:SS +XX:XX)。如果未提供偏移且未选择本地时区,则默认使用 UTC (+00:00)。


转换 Unix ↔ 日期 示例

点击尝试!

Basic Unix Time to Date

This example shows how Unix timestamps are converted into human-readable dates. Each timestamp represents the number of seconds that have elapsed since January 1, 1970 (UTC).

​
​

转换模式

Unix → 日期

日期 → Unix

时区选项

使用本地时间

使用 UTC

在转换的日期后显示 "UTC"(仅限 UTC 模式)

Without UTC Suffix

In this example, the UTC suffix is removed from the output. This might be useful for embedding timestamps into other formats or for cleaner display.

​
​

转换模式

Unix → 日期

日期 → Unix

时区选项

使用本地时间

使用 UTC

在转换的日期后显示 "UTC"(仅限 UTC 模式)

Basic Date to Unix

In this example, a plain human-readable timeframe is converted into a Unix timestamp. The UTC offset is treated as +00:00.

​
​

转换模式

Unix → 日期

日期 → Unix

时区选项

使用本地时间

使用 UTC

With UTC Offset Provided

In this example, the UTC offset is provided after stating the timeframe with a space.

​
​

转换模式

Unix → 日期

日期 → Unix

时区选项

使用本地时间

使用 UTC


全部 时间工具


  • 将天数转换为小时数 — 将天数转换为小时数
  • 将小时转换为天 — 将小时转换为天
  • 将秒转换为时间 — 将秒数转换为时间格式
  • 将时间转换为秒 — 将时间格式转换为秒
  • 截断时钟时间 — 将时钟时间截断为指定的精度
  • 日期间隔时间 — 计算两个日期之间的时间
  • Crontab Guru — 用简单语言解析和解释 cron 表达式
  • 检查闰年 — 检查年份是否为闰年
  • 把时间转换至十进制格式 — 把时段转化为小数小时值
  • Discord 时间戳生成器 — 从日期生成 Discord 时间戳

LocalHost Run · 联系我们 · 隐私政策 · 使用条款

© 2026 LocalHost Run · localhost 指南、文章与开发者工具 · localhostrun.com
访客计数: 1025Best viewed in Netscape Navigator · 800×600© LocalHost Run