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 解码器 → · 使用方法 → · 开发者工具 →

相关工具