Skip to content

Main content

Date: Date Only Timezone Annotation Tool

Attach an explicit zone annotation to a validated date-only value while retaining that it does not resolve a clock time or instant; annotation is not an IANA lookup.

Loading tool…

Description

Attach a nonempty single-line timezone annotation to a validated date.

A fixed UTC offset differs from a named timezone whose rules can vary by date. A zone-like label or signed-zero offset also carries metadata that a numeric minute total alone cannot express.

Attach a nonempty single-line timezone annotation to a validated date.

When to use this tool

Use Date: Date Only Timezone Annotation when inspecting a supplied offset or timezone annotation.

How to use the tool and how it works

  1. Enter date, timezoneAnnotation. 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.

Attach a nonempty single-line timezone annotation to a validated date. Preserve the supplied annotation up to 128 characters and return resolvesInstant = false.1

Input fieldMeaning and unitsAccepted input
dateDateRequired. Text. Real Gregorian YYYY-MM-DD; years 0001-9999 accepted. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units.
timezoneAnnotationTimezone AnnotationRequired. 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.dateDateCalculated result member: string.
result.timezoneAnnotationTimezone AnnotationCalculated result member: string.
result.resolvesInstantAlways false: a date and unchecked annotation do not identify an instant.Calculated result member: boolean.
json
{
  "input": {
    "date": "2024-01-01",
    "timezoneAnnotation": "Europe/London"
  },
  "output": {
    "result": {
      "date": "2024-01-01",
      "timezoneAnnotation": "Europe/London",
      "resolvesInstant": false
    }
  }
}

Limitations and assumptions

  • The label is not checked against a timezone database and a date alone does not resolve an instant.
  • 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 an authoritative timezone database and complete timestamp context to resolve an actual local time or day.

References

  1. Calculation and input contract: date/date-only-timezone-annotation — tool.io

Similar or alternative tools