Đi tới nội dung

Chuyển đổi Unix timestamp

Epoch sang ngày giờ và ngược lại. UTC, giờ địa phương, ISO 8601 và thời gian tương đối.

Chạy cục bộ trên trình duyệt

// now
seconds1793295529
milliseconds1793295529819
// converted
Enter a Unix timestamp or a date above to convert.

Cách hoạt động

When you'll reach for this

Reading logs and database rows

Logs, JWT exp claims, Kafka offsets, and created_at columns often store raw epoch numbers. Paste one in to see the actual date in UTC and your local time, plus whether it was recorded in seconds or milliseconds.

Seconds vs milliseconds

Unix tools use seconds (date +%s); JavaScript and many APIs use milliseconds. Mixing them is a classic off-by-1000 bug. This tool detects which one you pasted by its magnitude and shows both, so a cron schedule or a TTL never lands a thousand times too early or too late.

Câu hỏi thường gặp

What is a Unix timestamp?

The number of seconds since 1970-01-01 00:00:00 UTC (the Unix epoch), ignoring leap seconds. `date +%s` prints the current one.

Seconds or milliseconds?

Unix tools use seconds (10 digits until the year 2286). JavaScript, Java, and many APIs use milliseconds (13 digits). This tool auto-detects which you pasted by its length.

What is the year 2038 problem?

A signed 32-bit timestamp overflows on 2038-01-19 03:14:07 UTC. The fix is 64-bit time, which most modern systems already use.

Is my input sent to a server?

No. All conversion happens locally in your browser.

Các công cụ được port từ DevOps Daily theo giấy phép MIT.Xem bản gốc

Công cụ khác

Đọc biểu thức cron

Giải nghĩa biểu thức cron và xem các lần chạy tiếp theo theo múi giờ của bạn.

Mở công cụ

Tính subnet CIDR

Phân tích dải CIDR, tính dải địa chỉ, chia nhỏ subnet và kiểm tra một IP có nằm trong mạng hay không.

Mở công cụ

Giải mã JWT

Xem nội dung bất kỳ JWT nào ngay trên trình duyệt. Không gửi gì lên server.

Mở công cụ