MongoDB ObjectId 解碼器:快速上手指南

第一次使用就能成功所需的全部內容:該貼上什麼、哪個選項真正重要、以及如何讀懂結果。

輸入 MongoDB ObjectId 解碼器 輸出 100% 在瀏覽器內執行——資料不會離開您的裝置。
MongoDB ObjectId 解碼器 — 輸入 → 輸出. 100% 在瀏覽器內執行——資料不會離開您的裝置。

使用方法

  1. 開啟工具,將內容貼上到左側輸入框。
  2. 只調整任務真正需要的選項——多數情況下預設值就是正確的。
  3. 在右側檢視結果,輸入時結果會即時更新。
  4. 用「複製」取走結果,或用「下載」儲存為檔案。
使用方法 · MongoDB ObjectId 解碼器 1 將資料貼上到輸入框(或載入範例)。 2 依目標格式或使用情境調整選項。 3 複製、下載或檢視輸出——輸入時結果即時更新。
使用方法 — 3

範例

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 解碼器 → · 使用方法 → · 開發者工具 →

相關工具