Skip to content

Main content

ISO Duration Fractional Component Token Tool

Compute iso duration fractional component token from explicit bounded inputs.

Loading tool…

Description

Split one duration component's written fields.

Date labels and intervals depend on origins, endpoint inclusion and calendar versus elapsed-time conventions. Numeric serial periods and local token formats can represent useful bookkeeping without resolving a real instant or official fiscal rule.

Split one duration component's written fields.

When to use this tool

Use ISO Duration Fractional Component Token when checking a supplied date-label, duration or interval 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 whole, fraction, designator. Use the output convention below.

Split one duration component's written fields. Accept whole digits, optional decimal point/comma fraction and one Y/M/W/D/H/S designator; return whole/fraction as text and designator.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
wholeWholeRequired. Text; maximum UTF-16 length 8192.
fractionDimensionless fraction on the stated basis; a value of 1 represents the whole reference amount.Required. Text; maximum UTF-16 length 8192.
designatorDesignatorRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "token": "12.50S"
  },
  "output": {
    "whole": "12",
    "fraction": "50",
    "designator": "S"
  }
}

Limitations and assumptions

  • Without full P/T context, M is not resolved as month or minute; semantic ISO validity is not checked.
  • 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 a complete date/time implementation and the applicable calendar policy for actual scheduling and interval interpretation.

References

  1. Calculation and input contract: date/iso-duration-fractional-component-token — tool.io

Similar or alternative tools