Dekoder MongoDB ObjectId: panduan cepat
Semua yang Anda butuhkan untuk penggunaan pertama yang berhasil: apa yang ditempel, opsi mana yang penting, dan cara membaca hasilnya.
Cara pakai
- Buka alat dan tempel masukan Anda di panel kiri.
- Atur hanya opsi yang benar-benar dibutuhkan tugas Anda — nilai bawaan sudah tepat untuk sebagian besar masukan.
- Baca hasilnya di panel kanan; diperbarui saat Anda mengetik.
- Gunakan Salin untuk mengambil hasil, atau Unduh untuk menyimpannya sebagai berkas.
Contoh
The first four bytes are a Unix timestamp, which is why ObjectIds sort roughly by creation time.
Masukan
507f1f77bcf86cd799439011
Keluaran — Hasil
507f1f77bcf86cd799439011 Layout (12 bytes / 24 hex characters) timestamp 4 bytes 507f1f77 = 1350508407 random 5 bytes bcf86cd799 (process-unique, per the current spec) counter 3 bytes 439011 = 4427793 Creation time (UTC) 2012-10-17T21:13:27.000Z Creation time (local) Wed Oct 17 2012 21:13:27 GMT+0000 (Coordinated Universal Time) Age 5091.9 days Older drivers used 3-byte machine id + 2-byte process id instead of 5 random bytes; both layouts put the timestamp first, which is why ObjectIds sort roughly by time.
Jalankan
Deskripsi
Extract the creation timestamp, random bytes and counter from a 24-character ObjectId.
Dekoder MongoDB ObjectId → · Cara pakai → · Alat pengembang →
Alat terkait
Pengurai gradien jarakExplain cron syntax and compute the next 10 run times.Pencari HTTP pengguna CodeSearch all HTTP status codes with meanings and usage notes.Pengurai User-AgentBreak a User-Agent string into browser, engine and OS.ASCII karakter UnicodeInteractive reference of all 128 ASCII codes.Pencari biner karakterInspect code points, blocks and UTF encodings of any character.Generator .gitignoreAssemble a .gitignore from curated stack templates.