د يونېکس مهالشمېر ونجوونکی
د يو يونکسس دور مهالشمېرنې او د انسان نېټه او مهال ترمنځ بدلول
. پایلې اوسمهالول لکه څنګه چې تاسو ليکل
د دې شمېرګر په اړه
the time of the day, the time 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. A unit switch lets you read or produce either. 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 the matching epoch value. Because seconds-based timestamps and millisecond timestamps differ by a factor of 1,000, the time 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 value.For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds since 1 January 1970 UTC (the "epoch").For example, the time is the number of seconds
ډېرې پوښتنې
يو Unix مهالنښه په سېکېنډونو يا ميليسېکېنډونو کې دی؟
د کلاسیک Unix timestamp په ثانیو کې د 1970 دورې راهیسې دی، خو JavaScript او ډیری APIs د milliseconds (1000 × لوی) کاروي. د پرمختللو انتخابونو لاندې واحد تنظیم کړئ ترڅو یو ارزښت په هر ډول ولولئ.
د مهال ټاپه کوم مهال سيمه ښيي؟
یو Unix timestamp نه لري د وخت زون - دا یو مطلق لنډمهاله ده. د وسیله ښيي چې د لنډمهاله دواړه په توګه UTC او په خپل برېښنالیک د محلي وخت، چې ولې د دوو کرښو کولای شي د خپل UTC offset توپير.
زه څنګه کولای شم چې ووایم که چېرې د وخت د وخت په ثانیو یا ملی ثانیو کې وي؟
د رقمونو شمېر: د نن ورځ ثانیو timestamp د 10 رقمونو په اړه اوږد دی، په داسې حال کې چې د millisecond نسخه د 13 رقمونو په اړه ده. که چېرې د decoded نېټه 1970 ته نږدې ځمکې، تاسو ممکن د ثانیو په توګه د millisecond ارزښت ولولئ.
د UNIX عصر څه دی؟
د عصر د Unix وخت صفر ټکی دی: د 1 جنوري 1970 په منځنۍ شپه UTC. هر timestamp دی یوازې د ثانیو (یا milliseconds) شمېر له هغه وخته شمېرل.
دا د وخت د نښان په يوه نېټه بېرته بدل شي؟
هو. د نېټې → timestamp، د نېټې او محلي وخت داخل، او دا د عصر ارزښت، نو تاسو کولای شي په هر لوري round-سفر د اړخ بدل.
د کال 2038 ستونزه څه ده؟
سیسټمونه چې د 19 جنوري 2038 په یوه لاسلیک شوي 32-bit integer overflow کې د Unix وخت ذخیره کوي، وروسته له دې چې شمیر نور نشي زیاتولی. عصري 64-bit timestamps له دې څخه مخنیوی کوي، او دا بدلونکی د 2038 څخه ډیر وختونه ښه اداره کوي.
API - له کوډ څخه دا محاسبه کاروي
د يو وړيا JSON پای ټکي په توګه دا محاسبه ونيسئ - نه د اړتيا وړ. د ساحې ارزښتونه لاندې د پوښتنې پارامترونو یا JSON په توګه واستوئ. د بشپړ API اسناد ولولئ →
پای ټکی
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);
پایلې یوازې د عمومي لارښوونې لپاره اټکل شوي، نه مالي، طبي یا مالیه مشورې.