Bộ giải mã MongoDB ObjectId: hướng dẫn bắt đầu nhanh
Mọi thứ bạn cần cho lần dùng thành công đầu tiên: dán gì vào, tùy chọn nào thực sự quan trọng, và đọc kết quả ra sao.
Cách dùng
- Mở công cụ và dán dữ liệu vào khung bên trái.
- Chỉ chỉnh những tùy chọn mà tác vụ thực sự cần — giá trị mặc định đã đúng cho hầu hết trường hợp.
- Đọc kết quả ở khung bên phải; kết quả cập nhật khi bạn gõ.
- Dùng Sao chép để lấy kết quả, hoặc Tải xuống để lưu thành tệp.
Ví dụ
The first four bytes are a Unix timestamp, which is why ObjectIds sort roughly by creation time.
Đầu vào
507f1f77bcf86cd799439011
Đầu ra — Kết quả
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.
Chạy
Mô tả
Extract the creation timestamp, random bytes and counter from a 24-character ObjectId.
Bộ giải mã MongoDB ObjectId → · Cách dùng → · Công cụ lập trình →
Công cụ liên quan
Bộ phân tích cú pháp chuyển sắc khoảng cáchExplain cron syntax and compute the next 10 run times.Tra cứu HTTP người dùng CodeSearch all HTTP status codes with meanings and usage notes.Bộ phân tích cú pháp User-AgentBreak a User-Agent string into browser, engine and OS.ASCII ký tự UnicodeInteractive reference of all 128 ASCII codes.Tra cứu nhị phân ký tựInspect code points, blocks and UTF encodings of any character.Bộ tạo .gitignoreAssemble a .gitignore from curated stack templates.