កម្មវិធីបម្លែងសម័យយូនីក
បម្លែងរវាងសម័យកាលបរិច្ឆេទយូនីក និងកាលបរិច្ឆេទ និងពេលវេលារបស់មនុស្ស & # 160; ។
លទ្ធផលធ្វើឲ្យទាន់សម័យតាមដែលអ្នកវាយ & # 160; ។
អំពីម៉ាស៊ីនគិតលេខនេះ
the time of the day, the time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day. The time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time of the day.For example, the time is the time
សំណួរដែលសួរញឹកញាប់
តើសម្គាល់ពេលវេលារបស់យូនីកត្រូវបានបង្ហាញជាវិនាទី ឬមិល្លីវិនាទី & # 160;?
សម័យយូនីកបុរាណគឺជាវិនាទីចាប់ពីសម័យឆ្នាំ ១៩៧០ ប៉ុន្តែ JavaScript និង API ជាច្រើនប្រើមិល្លីវិនាទី (១០០០x ធំ) & # 160; ។ កំណត់ឯកតានៅក្រោមជម្រើសកម្រិតខ្ពស់ដើម្បីអានតម្លៃតាមវិធីណាមួយ & # 160; ។
តំបន់ពេលវេលាអ្វីដែលត្រាពេលវេលាតំណាង & # 160;?
ឧបករណ៍បង្ហាញថាជាបន្ទាន់ទាំងពីរជា UTC និងក្នុងពេលវេលាមូលដ្ឋានរបស់កម្មវិធីរុករករបស់អ្នក, ដែលជាហេតុដែលបន្ទាត់ពីរអាចខុសគ្នាដោយការប្ដូរ UTC របស់អ្នក.
តើខ្ញុំអាចប្រាប់ថាតើត្រាពេលវេលាគឺជាវិនាទី ឬមិល្លីវិនាទីបានដោយរបៀបណា & # 160;?
រាប់តួលេខ & # 160; ៖ សញ្ញាពេលវេលាវិនាទីបច្ចុប្បន្នមានប្រវែងប្រហែល ១០ តួលេខ ខណៈពេលដែលកំណែមីលីវិនាទីមានប្រវែងប្រហែល ១៣ តួលេខ & # 160; ។ ប្រសិនបើកាលបរិច្ឆេទដែលបានឌិកូដនៅជិត ១៩៧០ អ្នកប្រហែលជាអានតម្លៃមីលីវិនាទីជាវិនាទី & # 160; ។
តើអ្វីជាសម័យយូនីក & # 160;?
សម័យគឺជាចំណុចសូន្យនៃពេលវេលាយូនីក & # 160; ៖ ពាក់កណ្ដាលយប់ UTC នៅថ្ងៃទី ១ ខែមករា ឆ្នាំ ១៩៧០ & # 160; ។ ត្រាពេលវេលានីមួយៗគឺជាចំនួនវិនាទី (ឬ មិល្លីវិនាទី) ដែលរាប់ពីពេលនោះ & # 160; ។
តើវាអាចបម្លែងកាលបរិច្ឆេទត្រឡប់ទៅជាត្រាពេលវេលាបានឬទេ & # 160;?
បាទ/ ចាស ។ ប្ដូរទិសទៅកាលបរិច្ឆេទ → សម្គាល់ពេលវេលា បញ្ចូលកាលបរិច្ឆេទ និងពេលវេលាមូលដ្ឋាន ហើយវាត្រឡប់តម្លៃសម័យ ដូច្នេះអ្នកអាចធ្វើដំណើរជុំវិញក្នុងទិសណាមួយ ។
តើបញ្ហាឆ្នាំ 2038 ជាអ្វី?
ប្រព័ន្ធដែលរក្សាទុកពេលវេលាយូនីកក្នុងការហូរលើសចំនួនគត់ដែលបានចុះហត្ថលេខាចំនួន ៣២ ប៊ីតនៅថ្ងៃ ១៩ ខែមករា ២០៣៨ បន្ទាប់ពីការរាប់មិនអាចកើនឡើងទៀតទេ & # 160; ។ សម័យទំនើប ៦៤ ប៊ីត ពេលវេលាបោះពុម្ពមិនធ្វើដូចនេះ ហើយកម្មវិធីបម្លែងនេះគ្រប់គ្រងកាលបរិច្ឆេទដែលលើសពី ២០០៣ & # 160; ។
API — ប្រើម៉ាស៊ីនគិតលេខនេះពីកូដ
ទូរស័ព្ទទៅម៉ាស៊ីនគិតលេខនេះជាចំណុចបញ្ចប់ JSON ឥតគិតថ្លៃ - គ្មានគ្រាប់ចុចដែលត្រូវការ & # 160; ។ ផ្ញើតម្លៃវាលខាងក្រោមជាប៉ារ៉ាម៉ែត្រសំណួរ ឬ JSON & # 160; ។ អានឯកសារ 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);
លទ្ធផលគឺការប៉ាន់ប្រមាណសម្រាប់តែការណែនាំទូទៅប៉ុណ្ណោះ, មិនហិរញ្ញវត្ថុ, វេជ្ជសាស្ត្រឬដំបូន្មានពន្ធ.