Unix Timestamp Converter
Canja tsakanin wani lokaci na Unix da kuma wata rana da lokaci na mutum.
Results update as you type.
Game da wannan Kalkulator
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.
Tambayoyi da ake yi da yawa
Shin lokaci na Unix yana cikin sakan ko milliseconds?
An yi amfani da lokaci na Unix na gargajiya a cikin sakan tun daga 1970, amma JavaScript da APIs da dama suna amfani da milliseconds (1000× mafi girma). Ka saita yunit a cikin zaɓuɓɓukan ci gaba don ka karanta kimar a kowace hanya.
Mene ne yankin lokaci na nuna lokacin da aka yi?
A Unix timestamp ba shi da wani yanki na lokaci — shi ne wani lokaci na musamman. Shirin yana nuna wannan lokaci na musamman kamar UTC da kuma lokacin da ke cikin na'urar kallon yanar gizo, wanda shi ne dalilin da yasa layuka biyu zasu iya bambanta da UTC offset ɗinka.
Ta yaya zan iya sanin idan wata takardar lokaci tana cikin sakan ko millisakanni?
Count the digits: a present-day seconds timestamp is about 10 digits long, while the millisecond version is about 13 digits. If a decoded date lands near 1970, you probably read a millisecond value as seconds.
Mene ne zamanin Unix?
Epoch is the zero point of Unix time: midnight UTC on 1 January 1970. Every time stamp is just the number of seconds (or milliseconds) counted from that instant.
Can it convert a date back into a timestamp?
Ya. Sauya hanya zuwa Ranar → lokacin da aka yi, shigar da ranar da lokaci na yankin, kuma zai mayar da kimar lokaci, don haka zaka iya tafiyar da tafiya a cikin kowace hanya.
What is the year 2038 problem?
Systems that store Unix time in a signed 32-bit integer overflow on 19 January 2038, after which the count can no longer increase. Modern 64-bit timestamps avoid this, and this converter handles dates well beyond 2038.
API — amfani da wannan calculator daga code
Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →
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-10-23"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/unix-timestamp/?" + new URLSearchParams({
"mode": "to_date",
"unix": "1700000000",
"date": "2026-10-23"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.