Doviren
中文 ▾

Unix 时间戳转换

秒级或毫秒级时间戳与可读日期互转,支持时区,页面上还有实时时间戳。

它到底是什么怎么用免费档给到哪强在哪、弱在哪适合谁

它到底是什么

计算机用时间戳记时间,人读不懂;这个工具负责两边来回翻。原条目特别提到秒与毫秒两种单位。

怎么用

贴一个时间戳看对应日期,或反过来把日期转成时间戳;先确认单位是秒还是毫秒、时区选对。

免费档给到哪

免注册,页面直接给结果,还有实时跳动的当前时间戳。

强在哪、弱在哪

查日志、对接口很快;但时区或单位选错,结果会整体偏掉,「差了八小时」多半出在这里。

适合谁

开发、运维,以及需要核对接口里时间字段的人。

常见问题

为什么结果差八小时?

通常是时区没选对,或把毫秒当成了秒。

毫秒和秒怎么分?

常见做法是看位数:十位多半是秒,十三位多半是毫秒。

结果能直接写进代码吗?

可以当参考值,正式逻辑还是用语言自带的时间库。

关于原文与更新

本页中文部分按中文习惯重写,只转述原条目已有的事实,不新增功能承诺。下面是原站评测全文,一字未删照搬,便于逐条核对;第三方服务的功能与免费额度会变,以英文原条目和对方官网为准。

打开英文完整条目 →

原站评测全文(英文原文,照搬)

EpochConverter

Unix timestamps are how computers store time, and they are completely unreadable to humans. EpochConverter translates between the two instantly, in either direction.

What It Is

A Unix timestamp counts seconds since 1 January 1970 UTC. It is compact, unambiguous across timezones and therefore everywhere in logs, databases and APIs — and completely opaque when you are trying to work out when something happened.

This converter handles both directions. Paste a timestamp to get a human date, or enter a date to get its timestamp. It is careful about the seconds versus milliseconds distinction, which is the single most common source of confusion: JavaScript's Date.now() returns milliseconds while most Unix tooling uses seconds, and mixing them produces dates in 1970 or the year 50000.

A live current-timestamp display is shown on the page, which is handy when you need "now" in epoch form.

Open EpochConverter →

How To Use It

  1. Go to epochconverter.com
  2. Paste a timestamp into the converter, or use the current-timestamp display at the top.
  3. Check whether the value is in seconds or milliseconds and select accordingly.
  4. Read the converted date, and switch timezone if you need local rather than UTC.
  5. To go the other way, enter a date and time and read off the timestamp.
tip

Free Plan Details

RegistrationNot required
WatermarkNone
CostFree
DirectionsTimestamp to date, and date to timestamp
UnitsSeconds and milliseconds
TimezonesUTC and local conversion
ExtrasLive current timestamp, timezone list
ProcessingBrowser-side

Check before you rely on it: free quotas, file limits and pricing change frequently. Confirm current terms on the official site before depending on it for regular work.

Strengths And Limitations

What works well

  • Converts in both directions
  • Explicitly handles the seconds versus milliseconds ambiguity
  • Live current timestamp always visible
  • Timezone aware, not just UTC
  • No registration

Limitations

  • No batch conversion of many timestamps at once
  • Interface is utilitarian
  • No duration or time-difference calculator
  • Does not cover non-Unix epoch systems

Who Should Use It

Developers reading logs and API responses, database administrators, and anyone debugging why a timestamp looks wrong. If you have ever seen 1700000000 and wondered what date that was, this is the tool.

Frequently Asked Questions

Is EpochConverter free?

Yes, both conversion directions are free with no registration.

What is a Unix timestamp?

The number of seconds elapsed since 1 January 1970 UTC. It is the standard way computers represent a point in time.

Seconds or milliseconds — which do I have?

A 10-digit value is usually seconds; 13 digits usually means milliseconds. Getting this wrong produces dates in 1970 or far in the future.

Can I convert a date into a timestamp?

Yes, enter a date and time and the tool returns the corresponding timestamp.

Does it handle timezones?

Yes, you can view conversions in UTC or your local timezone.

Why do I see 1970?

Almost always because a milliseconds value was interpreted as seconds, or the value is zero or negative.