Skip to content
HALOWERK

Text Tools

cldr dayperiod phrase clock ranges

Localized time reverse lookup resolves a localized day-period phrase or key to its civil-time ranges. Use it when an agent needs the clock interval behind a phrase.

POST https://text.halowerk.com/v1/cldr-dayperiod-phrase-clock-ranges

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
phrasestringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 24,
      "minLength": 1
    },
    "phrase": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    }
  },
  "required": [
    "locale",
    "phrase"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "en",
  "phrase": "in the morning"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "windows": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "start": {
                "type": "string"
              },
              "end_exclusive": {
                "type": "string"
              }
            },
            "required": [
              "start",
              "end_exclusive"
            ]
          }
        }
      },
      "required": [
        "windows"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub →