Unix pretvornik časovnih oznak
Pretvori med Unix epoh časovni pas in človeški datum in čas.
Rezultati posodabljajo, ko tipkate.
O tem kalkulatorju
A Unix timestamp is the number of seconds since 1 January 1970 UTC (the "epoch"). This converter turns 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.
Pick a direction: give it an epoch number and it shows that exact instant both in UTC and in your browser’s local time zone (the two lines differ by your UTC offset), plus the ISO 8601 string and the weekday. Give it a date and a local time instead and it returns the matching epoch value. Because seconds-based timestamps and the millisecond timestamps used by JavaScript differ by a factor of 1,000, a unit switch lets you read or produce either.
For example, the timestamp 1700000000 is Tuesday 14 November 2023 22:13:20 UTC; the ten-digit length is a clue it is in seconds, whereas a thirteen-digit value like 1700000000000 is the same instant in milliseconds. Developers use this to decode a created_at column, sanity-check an API response, set an expiry, or convert a log line’s epoch stamp into a human date.
Pogosta vprašanja
Je Unix časovni števil v sekundah ali milisekundah?
The classic Unix timestamp is in seconds since the 1970 epoch, but JavaScript and many APIs use milliseconds (1000× larger). Set the unit under advanced options to read a value either way.
Katero časovno območje predstavlja časovni pas?
A Unix časovni tamp nima časovnega pasu – je absoluten trenutek. Orodje kaže, da takoj kot UTC in v lokalnem času vašega brskalnika, zato se lahko te dve vrstici razlikujejo po vašem UTC offsetu.
Kako naj vem, če je časovni pramen v sekundah ali milisekundah?
Prešteti številke: današnji časovni časovni pas je približno 10 števk dolg, medtem ko je različica milisekund približno 13 števk. Če dekodirani datum pristane blizu 1970, verjetno preberete milisekundno vrednost v sekundah.
Kaj je Unix epoha?
Epoha je nič časa Unix: polnoč UTC na 1. januarja 1970. Vsak čas je samo število sekund (ali milisekundi) šteje od tega trenutka.
Lahko spremeni datum nazaj v časovni ogled?
Da. Preklopite smer na datum → časovni pas, vnesite datum in krajevni čas, in vrne epoho vrednost, tako da lahko okroglo pot v obe smeri.
Kakšna je težava leta 2038?
Sistemi, ki shranijo Unix čas v podpisani 32-bit celo število prelivanje 19 Januar 2038, potem pa se število ne more več povečati. Modernih 64-bitnih časovnih oznak izogibamo, in ta pretvornik obvladujejo datume precej več kot 2038.
API – uporabi ta kalkulator iz kode
Poišči ta kalkulator kot brezplačni končni cilj JSON – ni potreben ključ. Pošljite spodnje vrednosti polja kot parametre za poizvedovanje ali JSON. Vse, kar opustite, uporablja enako privzeto. Ta stran je napolnjena z; neznani parameter je 400, nikoli ne tiho ničlo. Preberite celoten API docs →
Končna točka
GET https://calculator.free/api/v1/unix-timestamp/
curl
curl "https://calculator.free/api/v1/unix-timestamp/?mode=to_date&unix=1700000000&date=2026-09-08"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/unix-timestamp/?" + new URLSearchParams({
"mode": "to_date",
"unix": "1700000000",
"date": "2026-09-08"
}));
const data = await r.json();
console.log(data.results);
Rezultati so ocene za splošne smernice, ne pa za finančne, zdravniške ali davčne nasvete.