Encode and Recover Timestamps with Delta of Delta

Encode and Recover Timestamps with Delta of Delta

Try Press Step to uncover the first two timestamp gaps and find the 10 second interval the encoder keeps.

Can you recover the original timestamps?

Time-series coding

Start with a recorded timestamp

Recorded timestamp source
Use the chosen clock source throughout. Keep its units and timestamp quality with the record.
Recorded timestamps and their preceding gaps
Start · known timestamp
  1. Timestamp

    Interval covered

    Change covered

  2. Timestamp

    Interval covered

    Change covered

Start with a known timestamp. Each neighboring pair of stored timestamps has a gap.

Observe The interval panels reveal a 12 second gap after a 10 second gap, add +2 to Signed changes, then add −2 when the next gap returns to 10 seconds.
Explain The decoder adds +2 to the preceding 10 second interval to recover 12 seconds, then adds that interval to the previous timestamp to recover Start + 32 s.

Technical boundaries. The worked example starts from a known timestamp and uses one chosen clock source throughout. Its panels show interval arithmetic and exact matches in seconds. The clock source’s units and timestamp quality stay with the record.

Back to the chapter