Skip to content
HALOWERK

Trade Operations

relative time duration unit selection

Relative time formatting selects the largest whole fixed unit available for the distance between UTC timestamps. Use it when an agent needs a concise deadline label with its discarded remainder.

POST https://handel.halowerk.com/v1/relative-time-duration-unit-selection

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
referencestringYes
targetstringYes
localestringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "reference": {
      "type": "string",
      "maxLength": 30,
      "minLength": 1
    },
    "target": {
      "type": "string",
      "maxLength": 30,
      "minLength": 1
    },
    "locale": {
      "type": "string",
      "maxLength": 45,
      "minLength": 1
    }
  },
  "required": [
    "reference",
    "target",
    "locale"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "de-DE",
  "reference": "2026-01-16T15:00:00Z",
  "target": "2026-01-16T16:45:00.000Z"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’