Biến đổi dấu thời gian Unix
Chuyển đổi giữa dấu thời gian thời đại Unix và ngày và giờ của con người.
Kết quả cập nhật khi bạn gõ.
Về máy tính này
you want to read a log line, you can use the Unix timestamp converter. The Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value. It handles both seconds and milliseconds, shows the ISO 8601 form, and names the weekday. A staple for developers reading logs, databases and API responses. Because seconds-based timestamps and millisecond timestamps used by JavaScript differ by a factor of 1,000, a unit switch lets you read or produce either.The Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a readable UTC and local date.For example, the Unix timestamp converter is a tool that converts an epoch timestamp into a
Câu hỏi thường gặp
Điểm dừng thời gian Unix là giây hay mili giây?
Thời gian Unix cổ điển là giây kể từ thời kỳ 1970, nhưng JavaScript và nhiều API sử dụng mili giây (1000× lớn hơn). Chọn đơn vị dưới tùy chọn cao cấp để đọc giá trị theo bất kỳ cách nào.
Điểm dấu thời gian đại diện cho múi giờ nào?
Một dấu thời gian Unix không có múi giờ — nó là một thời điểm tuyệt đối. Công cụ hiển thị thời điểm đó theo UTC và theo thời gian địa phương của trình duyệt, đó là lý do hai dòng có thể khác nhau theo độ lệch UTC của bạn.
Làm sao tôi biết được thời gian ghi là giây hay mili giây?
Đếm số chữ số: một dấu thời gian giây hiện tại dài khoảng 10 chữ số, trong khi phiên bản mili giây dài khoảng 13 chữ số. Nếu ngày giải mã nằm gần 1970, bạn có thể đọc giá trị mili giây như là giây.
Kỷ nguyên Unix là gì?
Kỷ nguyên là điểm không có thời gian Unix: nửa đêm UTC ngày 1 tháng 1 năm 1970. Mỗi dấu thời gian chỉ là số giây (hoặc mili giây) tính từ thời điểm đó.
Nó có thể chuyển đổi ngày trở lại thành dấu thời gian không?
Phải. Đổi hướng sang Ngày → Dấu thời gian, nhập ngày và giờ địa phương, và nó sẽ trả về giá trị thời kỳ, vì vậy bạn có thể đi vòng quanh theo bất kỳ hướng nào.
Vấn đề năm 2038 là gì?
Hệ thống lưu thời gian Unix trong một số nguyên 32 bit có ký hiệu tràn vào ngày 19 tháng 1 năm 2038, sau đó số liệu không thể tăng thêm. Các dấu thời gian 64 bit hiện đại tránh điều này, và bộ chuyển đổi này xử lý các ngày sau 2038.
API — dùng máy tính này từ mã
Gọi máy tính này như một điểm cuối JSON miễn phí — không cần chìa khóa. Gửi giá trị trường dưới như tham số yêu cầu hoặc JSON. Đọc toàn bộ tài liệu API →
Điểm kết thúc
GET https://calculator.free/api/v1/unix-timestamp/
curl
curl "https://calculator.free/api/v1/unix-timestamp/?mode=to_date&unix=1700000000"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/unix-timestamp/?" + new URLSearchParams({
"mode": "to_date",
"unix": "1700000000"
}));
const data = await r.json();
console.log(data.results);
Kết quả là ước tính chỉ cho hướng dẫn chung, không phải là tư vấn tài chính, y tế hoặc thuế.