Skip to content

Main content

News Update Reference Time Gap Tool

Compare explicitly supplied publication, correction and reference clocks without fetching news.

Loading tool…

Description

Return referenceAt minus each timestamp and correctedAt minus publishedAt.

A timestamp difference produces an age or lag only after both timestamps use one origin and unit. Negative differences can be meaningful diagnostics of future samples or early events.

Return referenceAt minus each timestamp and correctedAt minus publishedAt.

When to use this tool

Use News Update Reference Time Gap when you need a supplied sample-age or event-lag calculation.

How to use the tool and how it works

  1. Enter publishedAt, correctedAt, referenceAt. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read publicationAge, correctionLag, correctionAge. Use the output convention below.

Require correctedAt ≥ publishedAt. Return referenceAt minus each timestamp and correctedAt minus publishedAt.1

Input fieldMeaning and unitsAccepted input
publishedAtPublished AtRequired. Finite number.
correctedAtCorrected AtRequired. Finite number.
referenceAtReference AtRequired. Finite number.
Output fieldInterpretationReturned shape
publicationAgePublication AgeRequired. Finite number.
correctionLagCorrection LagRequired. Finite number.
correctionAgeCorrection AgeRequired. Finite number.
json
{
  "input": {
    "publishedAt": 10,
    "correctedAt": 12,
    "referenceAt": 20
  },
  "output": {
    "publicationAge": 10,
    "correctionLag": 2,
    "correctionAge": 8
  }
}

Limitations and assumptions

  • Timestamps need a common origin and unit; reference ages can be negative and the substance or accuracy of a correction is not evaluated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Resolve clock synchronization, timezone conversion, and source timestamp accuracy before interpreting real-world timing.

References

  1. Calculation and input contract: media-studies/news-update-reference-time-gap — tool.io

Similar or alternative tools