Skip to content

Main content

Date: ISO Date Reduced Precision Label Tool

Classify strict Gregorian ISO reduced precision YYYY, YYYY-MM or YYYY-MM-DD without inventing omitted fields.

Loading tool…

Description

Classify validated reduced date precision.

Timestamp notation distinguishes written precision, quantization and carry into the next larger field. Padding a fraction, rounding it and propagating an end-of-day marker are different operations and do not establish clock accuracy.

Classify validated reduced date precision.

When to use this tool

Use Date: ISO Date Reduced Precision Label when checking one explicit timestamp precision, rounding or carry convention.

How to use the tool and how it works

  1. Enter token. 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 result. Expand result to inspect the returned fields.

Classify validated reduced date precision. Accept YYYY, YYYY-MM or YYYY-MM-DD; validate using the first day of omitted components and return year, month or day.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units.
Output fieldInterpretationReturned shape
resultReturned object; expand its named members below.Required. Object.
result.precisionPrecisionCalculated result member: string.
json
{
  "input": {
    "token": "2024-02"
  },
  "output": {
    "result": {
      "precision": "month"
    }
  }
}

Limitations and assumptions

  • The omitted fields remain unknown rather than being asserted as the actual first day; no instant is resolved.
  • Outputs are nested inside result. 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.

Alternative or Complementary methods

Use complete date-time arithmetic when a carry must change a date or interact with timezone transitions.

References

  1. Calculation and input contract: date/iso-date-reduced-precision-label — tool.io

Similar or alternative tools