Loncat ke daftar isi utama

Bagaimana cara mengubah antara tanggal dan cap waktu Unix di Excel?

Stempel waktu Unix juga disebut waktu Epoch atau waktu POSIX yang digunakan secara liar di banyak sistem operasi atau format file. Tutorial ini berbicara tentang konversi antara tanggal dan stempel waktu Unix di Excel.

Ubah tanggal menjadi cap waktu

Ubah tanggal dan waktu menjadi cap waktu

Ubah stempel waktu menjadi tanggal

Tutorial lainnya tentang konversi waktu ...


panah gelembung kanan biru Ubah tanggal menjadi cap waktu

Untuk mengonversi tanggal ke stempel waktu, rumus dapat mengatasinya.

Pilih sel kosong, misalkan Sel C2, dan ketikkan rumus ini = (C2-DATE (1970,1,1)) * 86400 ke dalamnya dan tekan Enter kunci, jika perlu, Anda dapat menerapkan rentang dengan rumus ini dengan menyeret tuas IsiOtomatis. Sekarang rentang sel tanggal telah diubah menjadi stempel waktu Unix.
dokumen-konversi-tanggal-unix-1


2 Klik untuk Mengonversi Waktu ke Desimal Jam, Menit, atau Detik

Grafik Ubah Waktu fitur dari Kutools untuk Excel dapat membantu Anda dengan cepat mengonversi waktu menjadi jam, menit, atau detik desimal dan menempatkan hasilnya di tujuan awal atau yang lain.

doc waktu konversi 1

panah gelembung kanan biru Ubah tanggal dan waktu menjadi cap waktu

Ada rumus yang dapat membantu Anda mengubah tanggal dan waktu menjadi stempel waktu Unix.

1. Pertama, Anda perlu mengetik Waktu Universal Terkoordinasi ke dalam sel, 1/1/1970. Lihat tangkapan layar:
dokumen-konversi-tanggal-unix-2

2. Kemudian ketikkan rumus ini = (A1- $ C $ 1) * 86400 ke dalam sel, tekan Enter kunci, lalu jika perlu, seret gagang IsiOtomatis ke rentang dengan rumus ini. Lihat tangkapan layar:
dokumen-konversi-tanggal-unix-3

Tips: Dalam rumusnya, A1 adalah sel tanggal dan waktu, C1 adalah koordinat waktu universal yang Anda ketikkan.


panah gelembung kanan biru Ubah stempel waktu menjadi tanggal

Jika Anda memiliki daftar stempel waktu yang diperlukan untuk mengonversi ke tanggal, Anda dapat melakukan langkah-langkah di bawah ini:

1. Dalam sel kosong di sebelah daftar cap waktu Anda dan ketikkan rumus ini =(((A1/60)/60)/24)+DATE(1970,1,1), tekan Enter kunci, lalu seret tuas pengisian otomatis ke kisaran yang Anda butuhkan.
dokumen-konversi-tanggal-unix-4

2. Kemudian klik kanan sel rumus yang digunakan, dan pilih Format Cells dari menu konteks, lalu di popping Format Cells dialog, di bawah Number tab, klik Tanggal dalam Kategori daftar, lalu pilih jenis tanggal di bagian kanan.
dokumen-konversi-tanggal-unix-5

3. klik OK, sekarang Anda dapat melihat stempel waktu Unix telah diubah menjadi tanggal.
dokumen-konversi-tanggal-unix-6

Catatan:

1. A1 menunjukkan sel cap waktu yang Anda butuhkan.

2. Rumus ini juga dapat digunakan untuk mengubah rangkaian timestamp menjadi tanggal dan waktu, cukup format hasilnya ke format tanggal dan waktu.

3. Rumus di atas mengubah angka 10 digit menjadi datetime standar, jika Anda ingin mengubah angka 11 digit, atau 13 digit angka, atau 16 digit angka menjadi datetime standar di Excel, gunakan rumus seperti di bawah ini:

Ubah angka 11 digit menjadi tanggal: =A1/864000+TANGGAL(1970,1,1)

Ubah angka 13 digit menjadi tanggal: =A1/86400000+TANGGAL(1970,1,1)

Ubah angka 16 digit menjadi tanggal: =A1/86400000000+TANGGAL(1970,1,1)

Untuk panjang angka yang berbeda yang perlu dikonversi ke datetime, cukup ubah jumlah nol pembagi dalam rumus untuk mendapatkan hasilnya dengan benar.


Artikel Relatif:

  • Bagaimana cara menghapus waktu dari tanggal di Excel?
    Jika ada kolom tanggal dengan cap waktu, seperti 2/17/2012 12:23, dan Anda tidak ingin menyimpan cap waktu dan ingin menghapus waktu 12:23 dari tanggal dan hanya meninggalkan tanggal 2/17/2012. Bagaimana Anda bisa dengan cepat menghapus waktu dari tanggal di sel mulitple di Excel?

  • Bagaimana cara menggabungkan tanggal dan waktu menjadi satu sel di Excel?
    Ada dua kolom dalam lembar kerja, yang satu adalah tanggal, yang lainnya adalah waktu. Adakah cara untuk menggabungkan kedua kolom ini menjadi satu dengan cepat, dan mempertahankan format waktu? Sekarang, artikel ini memperkenalkan dua cara di Excel untuk menggabungkan kolom tanggal dan kolom waktu menjadi satu dan mempertahankan format waktu.

Alat Produktivitas Kantor Terbaik

馃 Kutools AI Ajudan: Merevolusi analisis data berdasarkan: Eksekusi Cerdas   |  Hasilkan Kode  |  Buat Rumus Khusus  |  Analisis Data dan Hasilkan Grafik  |  Aktifkan Fungsi Kutools...
Fitur Populer: Temukan, Sorot, atau Identifikasi Duplikat   |  Hapus Baris Kosong   |  Gabungkan Kolom atau Sel tanpa Kehilangan Data   |   Putaran tanpa Formula ...
Pencarian Super: VLookup Beberapa Kriteria    VLookup Nilai Berganda  |   VLookup di Beberapa Lembar   |   Pencarian Fuzzy ....
Daftar Drop-down Lanjutan: Buat Daftar Drop Down dengan Cepat   |  Daftar Drop Down yang Bergantung   |  Multi-pilih Drop Down List ....
Manajer Kolom: Tambahkan Jumlah Kolom Tertentu  |  Pindahkan Kolom  |  Alihkan Status Visibilitas Kolom Tersembunyi  |  Bandingkan Rentang & Kolom ...
Fitur Unggulan: Fokus Kisi   |  Tampilan Desain   |   Bar Formula Besar    Manajer Buku Kerja & Lembar   |  Perpustakaan Sumberdaya (Teks otomatis)   |  Pemetik tanggal   |  Gabungkan Lembar Kerja   |  Enkripsi/Dekripsi Sel    Kirim Email berdasarkan Daftar   |  Filter Super   |   Filter Khusus (filter tebal/miring/coret...) ...
15 Perangkat Teratas12 Teks Tools (Tambahkan Teks, Hapus Karakter, ...)   |   50 + Grafik jenis (Gantt Chart, ...)   |   40+ Praktis Rumus (Hitung usia berdasarkan ulang tahun, ...)   |   19 Insersi Tools (Masukkan Kode QR, Sisipkan Gambar dari Jalur, ...)   |   12 Konversi Tools (Angka ke Kata, Konversi Mata Uang, ...)   |   7 Gabungkan & Pisahkan Tools (Lanjutan Gabungkan Baris, Pisahkan Sel, ...)   |   ... dan banyak lagi

Tingkatkan Keterampilan Excel Anda dengan Kutools for Excel, dan Rasakan Efisiensi yang Belum Pernah Ada Sebelumnya. Kutools for Excel Menawarkan Lebih dari 300 Fitur Lanjutan untuk Meningkatkan Produktivitas dan Menghemat Waktu.  Klik Di Sini untuk Mendapatkan Fitur yang Paling Anda Butuhkan...

Deskripsi Produk


Tab Office Membawa antarmuka Tab ke Office, dan Membuat Pekerjaan Anda Jauh Lebih Mudah

  • Aktifkan pengeditan dan pembacaan tab di Word, Excel, PowerPoint, Publisher, Access, Visio, dan Project.
  • Buka dan buat banyak dokumen di tab baru di jendela yang sama, bukan di jendela baru.
  • Meningkatkan produktivitas Anda sebesar 50%, dan mengurangi ratusan klik mouse untuk Anda setiap hari!
Comments (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How Define a Custom Date Format: yyyy-mm-dd hh:mm:ss

yyyy: Year with four digits.
mm: Month with two digits (01-12).
dd: Day of the month with two digits (01-31).
hh: Hour with two digits (00-23).
mm: Minute with two digits (00-59).
ss: Second with two digits (00-59).
This comment was minimized by the moderator on the site
Hi, Monero Jeanniton, to format a cell with custom date format, just right-click on the cell, select Format Cells, then type the format into Type of Custom section. See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/format%20cells.png
This comment was minimized by the moderator on the site
Converted 123000 Lines of Data Stamp 13 Digits like a PRO Thanks alot for the tips
This comment was minimized by the moderator on the site
I have a numeric value of 3721719999 which is suppose to display as 00:06:12 (hh:mm:ss). This time represents the time duration of a video file. The date stamp on the file name is 1/18/2014 4:04 pm, if that offers any further information. I extracted the number using Filelist.exe and this was the result. Thanks!
This comment was minimized by the moderator on the site
How to convert 13 digits timestamp to human readable date ?
Could someone help please
This comment was minimized by the moderator on the site
Hi, Roobanraj, to convert 13 digits timestamp to a standard datetime, you can use the formula as this:=A1/86400000+DATE(1970,1,1), A1 is the cell that contains the 13-digits you want to convert to.
This comment was minimized by the moderator on the site
How to convert 11 digits timestamp to human readable date ?
Could someone help please
This comment was minimized by the moderator on the site
For converting 11 digits timestamp to a standard datetime, use the formula as this:=A1/864000+DATE(1970,1,1), A1 is the cell that contains the 11-digits you want to convert to.
This comment was minimized by the moderator on the site
how to convert event time stamp to hour
This comment was minimized by the moderator on the site
To convert date for MOODLE the only formula that worked was:


Instead of =(C2-DATE(1970,1,1))*86400

I tried 20/october/1980 and Moodle read 19/october/1980.

I used
=(C2-DATE(1970,1,0))*86400

I tried 20/october/1980 and Moodle read 20/october/1980.
This comment was minimized by the moderator on the site
How to convert 21 digits timestamp to human readable date ?
Could someone help please
E.g., 202002191100506253230
This comment was minimized by the moderator on the site
IF you have an LDAP 18-Digit timestamp such as 132079258679926000 the below formulas will not work. You first have to convert them as they are based in nano seconds from 1/1/1601. The following formula in Excel converts the LDAP to EPOCH to human dates =(((((A1/10000000)-11644473900)/60)/60)/24)+DATE(1970,1,1) where A1 refers to your timestamp location
This comment was minimized by the moderator on the site
Thanks for your supplement.
This comment was minimized by the moderator on the site
One thing to note is that the above is for epoch time in seconds. If you need milliseconds, you need to add a further multiplication / division by 1000. For example, converting from epoch time (milliseconds) to a date would be "=((((A1/1000)/60)/60)/24)+DATE(1970,1,1)".
This comment was minimized by the moderator on the site
Muchas gracias, para mi caso estaba adivinando porque no conoc铆a que tipo de dato venia pero este fue la soluci贸n, el dato que me pasaron era con esta forma 1641014648299 y la formula fue esta =((((C2/1000)/60)/60)/24 )+FECHA(1970;1;1) por lo cual si alguien esta en un caso similar al m铆o puede optar por esta formula.

Esta formula tambi茅n me sirvi贸 pero solo trae fecha =A1/86400000+FECHA(1970;1;1)
This comment was minimized by the moderator on the site
As a side note, the best way to tell if it's seconds or milliseconds is looking at the length of the field; if it's 10 digits, it's seconds, and if it's 13 digits, it's milliseconds. "=LEN(A1)" will tell you how long the value is.
This comment was minimized by the moderator on the site
If that's too much manual work for you (or you have a list that's mixed between seconds and milliseconds), then you can use the following formula to automatically switch between seconds and milliseconds based on the length of the cell: "=((A1/86400)/IF(LEN(A1)=13,1000,1))+DATE(1970,1,1)".
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations