Unix wagt döwri
Unix epoch wagt möhüri bilen adam wagt we taryh arasyny öwür
Netijeler ýazýan wagtyň täzelener.
Bu hasapçy hakda
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.
Köp soralýan soraglar
Unix wagt möhüri sekuntlardamy ýa-da millisekundlardamy?
Unix zaman damgasy 1970'den bäri sekuntlardadyr, emma JavaScript we köp API'ler millisekundlary ulanýar (1000x uly). Bir mykdary her iki tarapdan okamak üçin ileri opsiýalar astyndan birligi belle.
Zaman möhüri haýsy wagt zolakyny görkezýär?
Bir Unix wagt möhüri wagt zolaky ýok - ol doly bir wagt. Asylly bu wagty hem UTC hemem seň görneliň ýeralman wagtynda görkezýär, şu sebäpden iki hatlar seň UTC offset bilen tapawutlanyp biler.
Bir wagt möhüriniň sekuntlardamy ýa-da millisekundlardamydygyny men nädip bilip bilýärin?
Raýtlar sana: şu wagt sekunt wagt möhüri 10 rakam uzaklykda, millisekund wersiýasy 13 rakam uzaklykda. Eger dekodirlen bir wagt 1970 golaýynda bolsa, belki siz millisekund mykdaryny sekuntlar ýaly okaýarsyňyz.
Unix epoch näme?
Epos Unix wagtyň sıfır noktasy: 1 Janwar 1970 UTC orta gece. Her wagt möhüri diňe şol wagtdan hasaplanan sekunt (ýa millisekund) sanydyr.
Bu bir taryhy wagt möhürine öwürip bilermi?
Eý. Ýörelgeni Taryh → wagt möhürine geç, taryh we ýeralma wagty giriz, we epoch mykdaryny gaýtar, şundan her iki tarapda hem dolap gidip bilersiň.
2038 ýyl problemasy näme?
Unix wagty 19 Janwar 2038-de 32 bit tam san akymda saklaýan sistemler, ondan soň san artmaz. Zamanaviy 64 bit wagt möhürleri bundan gaça dururlar, we bu konvertor 2038'den soňky wagtlary işledýär.
API — bu hasapçyny koddan ullan
Bu hasapçyny boş JSON ahtar noktasy hökmünde çagyr - açar gerek däl. Aşakdaky meýdança mykdarlaryny soragyň parametrleri ýa-da JSON hökmünde iber. Siziň goýmaýan hernäňiz şu sahypanyň öň bellenen öň bellenenini ulanýar; namydar parametr 400, hiç wagt sessiz sıfır däl. Eňlisçe senedleri oka →
Endpoint
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);
Netijeler diňe umumy ýardam üçin hasaplanypdyr, maliýe, saglyk ýa-da salgyt maslahaty üçin däl.