Skip to content
HALOWERK

Trade Operations

relative time idiomatic substitutions

Relative time localization identifies offsets that have a special word in the locale, such as yesterday. Use it when an agent needs the lexical alternatives to numeric labels.

POST https://handel.halowerk.com/v1/relative-time-idiomatic-substitutions

Inputs

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

Open original schema

Published input example

{
  "locale": "de-DE",
  "unit": "day",
  "range": 2
}

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