Skip to content
HALOWERK

Text Tools

cldr interval occupied calendar dates

Localized booking dates convert an inclusive-start, exclusive-end instant interval into a label covering only occupied local calendar dates. Use it when an agent needs the last occupied day for a booking that may end at local midnight.

POST https://text.halowerk.com/v1/cldr-interval-occupied-calendar-dates

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
zonestringYes
startstringYes
endstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1
    },
    "zone": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    },
    "start": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    },
    "end": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    }
  },
  "required": [
    "locale",
    "zone",
    "start",
    "end"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "en-GB",
  "zone": "Europe/London",
  "start": "2025-05-01T09:00:00Z",
  "end": "2025-05-03T23:00:00Z"
}

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": {
        "occupied_dates": {
          "type": "string"
        },
        "last_occupied_date": {
          "type": "string"
        },
        "exclusive_end_date": {
          "type": "string"
        },
        "end_date_excluded": {
          "type": "boolean"
        }
      },
      "required": [
        "occupied_dates",
        "last_occupied_date",
        "exclusive_end_date",
        "end_date_excluded"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

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 →