Free Unix Timestamp Converter Online

Convert Unix timestamps to dates and dates to timestamps. See the live current timestamp updated every second.

当前时间戳
--Unix Seconds
--Unix Milliseconds
--UTC日期和时间
世界时钟 — 按城市显示实时

时间戳转日期

日期转时间戳

将日期转换为所有时区

主要特点

一款工具满足您所有需求

实时时间戳

The current Unix timestamp in seconds and milliseconds updates every second.

时区支持

在UTC或任何主要世界时区中转换时间戳。

隐私优先

所有处理都在您的浏览器中本地完成。您的数据保持私密。

关于此工具

Convert between Unix timestamps and human-readable dates in any direction. Supports multiple timezones and shows the live current timestamp updated every second.

常见问题

What is a Unix timestamp?

A Unix timestamp is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC.

这是一种通用的、与时区无关的表示时间点的方式。

Unix timestamps are widely used in databases, APIs, and programming languages.

秒和毫秒时间戳之间有什么区别?

A seconds-based Unix timestamp has 10 digits, for example 1700000000.

基于毫秒的时间戳有13位数字,例如1700000000000。

JavaScript uses milliseconds by default, while most Unix systems use seconds.

如何在 JavaScript 中将时间戳转换为日期?

对于基于秒的时间戳,请使用 new Date(timestamp * 1000)。

对于基于毫秒的时间戳,请使用 new Date(timestamp)。

然后调用 .toISOString() 或 .toLocaleString() 来格式化日期。

什么是纪元时间?

Epoch time is another name for Unix time. The epoch is the starting point: January 1, 1970.

The terms Unix timestamp, epoch time, and POSIX time all refer to the same concept.

纪元时间是计算机中时间表示的事实标准。