ตัวถอดรหัส MongoDB ObjectId: คู่มือเริ่มต้นอย่างรวดเร็ว
ทุกสิ่งที่คุณต้องใช้สำหรับการรันครั้งแรกที่สำเร็จ: วางอะไร ตัวเลือกใดสำคัญจริง และอ่านผลลัพธ์อย่างไร
วิธีใช้
- เปิดเครื่องมือแล้ววางข้อมูลในช่องซ้าย
- ปรับเฉพาะตัวเลือกที่งานของคุณต้องการจริง — ค่าเริ่มต้นถูกต้องสำหรับข้อมูลส่วนใหญ่
- อ่านผลลัพธ์ที่ช่องขวา ซึ่งอัปเดตขณะพิมพ์
- ใช้ คัดลอก เพื่อนำผลลัพธ์ไปใช้ หรือ ดาวน์โหลด เพื่อบันทึกเป็นไฟล์
ตัวอย่าง
The first four bytes are a Unix timestamp, which is why ObjectIds sort roughly by creation time.
ข้อมูลเข้า
507f1f77bcf86cd799439011
ข้อมูลออก — ผลลัพธ์
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.
รัน
คำอธิบาย
Extract the creation timestamp, random bytes and counter from a 24-character ObjectId.
ตัวถอดรหัส MongoDB ObjectId → · วิธีใช้ → · เครื่องมือนักพัฒนา →
เครื่องมือที่เกี่ยวข้อง
ตัวแยกวิเคราะห์การไล่สีระยะทางExplain cron syntax and compute the next 10 run times.ตัวค้นหา HTTP ผู้ใช้ CodeSearch all HTTP status codes with meanings and usage notes.ตัวแยกวิเคราะห์ User-AgentBreak a User-Agent string into browser, engine and OS.ASCII ตัวอักษร UnicodeInteractive reference of all 128 ASCII codes.ตัวค้นหาฐานสองตัวอักษรInspect code points, blocks and UTF encodings of any character.ตัวสร้าง.gitignoreAssemble a .gitignore from curated stack templates.