Unix Time Converter|Unix 时间戳转换工具

Unix 时间戳转换工具 | Unix Time Converter

Unix 时间戳转换工具 Unix Time Converter

在 Unix 时间戳与人类可读日期时间之间进行双向转换,支持秒与毫秒、UTC 与本地时间显示。
Convert between Unix timestamps and human-readable date & time, supporting seconds or milliseconds and both UTC and local time.

1. 输入参数 · Conversion Inputs
Unix 时间戳是从 1970-01-01 00:00:00 UTC(不含)起经过的秒数或毫秒数。
A Unix timestamp is the number of seconds or milliseconds that have elapsed since 1970-01-01 00:00:00 UTC (exclusive).
日期为必填项,时间不填时默认为 00:00:00。
Date is required. If time is omitted, 00:00:00 will be used by default.
Unix 时间戳本质上基于 UTC,本选项仅影响“日期时间 → 时间戳”时如何解析输入,以及结果优先展示本地时间还是 UTC。
Unix timestamps are defined against UTC. This setting only controls how date-time input is interpreted and which time (local or UTC) is shown as the primary result.
3. Unix 时间小结 · Unix Time Summary
  • 什么是 Unix 时间戳? · What is a Unix timestamp?
    Unix 时间戳是从 1970-01-01 00:00:00 UTC 起到某一时间点所经历的秒数或毫秒数,是计算机系统中常用的时间表示方式。
    A Unix timestamp represents the number of seconds (or milliseconds) that have elapsed since 1970-01-01 00:00:00 UTC, and is widely used in operating systems and programming.
  • 秒与毫秒的区别 · Seconds vs. milliseconds:
    早期系统只使用“秒级时间戳”,现代语言和数据库中常使用“毫秒级时间戳”(精度更高)。
    Early systems mostly used second-based timestamps, while modern languages and databases often use millisecond-based timestamps for higher precision.
  • 本地时间与 UTC · Local time vs. UTC:
    Unix 时间戳永远基于 UTC,显示为本地时间时,会根据所在时区偏移进行换算。因此同一时间戳,在不同时区对应的“当地时间”显示可能不同。
    Unix time itself is always UTC-based. When shown in local time, the value is converted according to your time zone offset, so the same timestamp may appear as different local times in different regions.
  • 典型用途 · Common use cases:
    常用于日志时间记录、数据库存储、API 接口传递、前后端时间同步等场景。
    Frequently used in logging, database storage, API communication, and front-end/back-end time synchronization.

说明:本工具完全在浏览器本地运行,基于当前设备的时区设置进行计算和显示,结果仅供学习、开发和排错辅助使用,不构成任何法律或合约时间依据。
Note: This tool runs entirely in your browser and relies on your device’s time zone settings. Results are for learning, development and debugging only and should not be used as an official time reference for legal or contractual purposes.