MongoDB ObjectIddecoder: snel starten

Alles voor een eerste geslaagde run: wat je plakt, welke optie er echt toe doet en hoe je het resultaat leest.

Invoer MongoDB ObjectIddecoder Uitvoer Draait 100% in je browser — je gegevens verlaten nooit je apparaat.
MongoDB ObjectIddecoder — Invoer → Uitvoer. Draait 100% in je browser — je gegevens verlaten nooit je apparaat.

Gebruiksaanwijzing

  1. Open de tool en plak je invoer in het linkerpaneel.
  2. Stel alleen de opties in die je taak echt nodig heeft; de standaardwaarden kloppen voor de meeste invoer.
  3. Lees het resultaat in het rechterpaneel; het werkt live bij tijdens het typen.
  4. Gebruik Kopiëren om het resultaat te pakken of Downloaden om het als bestand op te slaan.
Gebruiksaanwijzing · MongoDB ObjectIddecoder 1 Plak je gegevens inhet invoervak (of laadhet voorbeeld). 2 Stel de opties in voorhet gewenste formaat. 3 Kopieer, download ofbekijk de uitvoer —live bijgewerkt.
Gebruiksaanwijzing — 3

Voorbeelden

The first four bytes are a Unix timestamp, which is why ObjectIds sort roughly by creation time.

Invoer

507f1f77bcf86cd799439011

Uitvoer — Resultaten

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.

Uitvoeren

Beschrijving

Extract the creation timestamp, random bytes and counter from a 24-character ObjectId.

MongoDB ObjectIddecoder → · Gebruiksaanwijzing → · Ontwikkelaarstools →

Gerelateerde tools