Skip to content
HALOWERK

Trade Operations

relative time fit character budget

Relative time label fitting chooses the first available long, short or narrow rendering inside a code-point budget. Use it when an agent needs a status label for a constrained display.

POST https://handel.halowerk.com/v1/relative-time-fit-character-budget

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
unitSee schemaYes
valueintegerYes
charactersintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 45,
      "minLength": 1
    },
    "unit": {
      "enum": [
        "second",
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
      ]
    },
    "value": {
      "type": "integer",
      "minimum": -10000,
      "maximum": 10000
    },
    "characters": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "locale",
    "unit",
    "value",
    "characters"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "de-DE",
  "unit": "hour",
  "value": -1,
  "characters": 12
}

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 โ†’