Skip to content

Main content

iCalendar Basic Time Token Formatter

Format validated iCalendar HHMMSS with optional Z; second 60 is retained as explicit leap-second notation, not proof of a real leap second.

Loading tool…

Description

Format validated iCalendar HHMMSS with optional Z; second 60 is retained as explicit leap-second notation, not proof of a real leap second.

iCalendar separates content-line framing, property values, parameters and component nesting. TEXT escaping protects separators, while line folding is based on encoded octets. DATE, floating time, UTC and named-zone representations carry different information; a token-level operation does not resolve a timezone or expand recurrence rules.1

Format validated iCalendar HHMMSS with optional Z; second 60 is retained as explicit leap-second notation, not proof of a real leap second.

When to use this tool

Use this tool to format validated iCalendar HHMMSS with optional Z; second 60 is retained as explicit leap-second notation, not proof of a real leap second.

How to use the tool and how it works

  1. Enter hour, minute, second, utc using the field definitions below.
  2. Run the operation. Correct input errors before interpreting an output.
  3. Read result.token. Use the ordering, boundary rules and absence conditions described below.

Validate hour 0–23, minute 0–59 and second 0–60, pad each to two digits and append Z when utc is true.2

Input fieldMeaning and unitsAccepted input
hourInteger hour 0–23.A finite safe integer within the operation’s stated bounds.
minuteInteger minute 0–59.A finite safe integer within the operation’s stated bounds.
secondInteger second 0–60; leap-second occurrence is not verified.A finite safe integer within the operation’s stated bounds.
utcTrue appends Z; false leaves the token without a UTC marker.A boolean true or false.
Output fieldInterpretation
resultObject containing the named fields below.
result.tokenFormatted basic date/time token.
json
{
  "input": {
    "hour": 1,
    "minute": 2,
    "second": 3,
    "utc": true
  },
  "output": {
    "result": {
      "token": "010203Z"
    }
  }
}

Limitations and assumptions

  • Without Z the token has no timezone interpretation supplied by this formatter.
  • Content spans use zero-based UTF-16 offsets; fold limits use UTF-8 bytes including the continuation space. Token helpers handle the stated subset only, without a timezone database, recurrence engine or calendar import.
  • Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
  • Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.

Alternative or Complementary methods

Keep content-line syntax, value escaping and timezone interpretation separate. Use a complete iCalendar implementation for recurrence expansion, timezone transitions and property-specific validation.

References

  1. RFC 5545: Internet Calendaring and Scheduling Core Object Specification — RFC Editor

  2. Tool behavior and example: iCalendar Basic Time Token Formatter — tool.io

Similar or alternative tools