{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-date-calc-elapsed-schema.json",
  "title": "date-calc.elapsed",
  "description": "Exact elapsed time between two local date-times, following DST in each time zone.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/programmes-net-converters-api-openapi.yml#/components/schemas/date-calc.elapsed",
  "type": "object",
  "properties": {
    "operation": {
      "const": "elapsed"
    },
    "input": {
      "type": "string",
      "description": "Start as \"YYYY-MM-DD HH:MM\".",
      "maxLength": 32768
    },
    "options": {
      "type": "object",
      "properties": {
        "end": {
          "type": "string",
          "description": "End as \"YYYY-MM-DD HH:MM\".",
          "maxLength": 32768
        },
        "timeZone": {
          "type": "string",
          "description": "IANA zone of the start.",
          "maxLength": 32768,
          "default": "UTC"
        },
        "endTimeZone": {
          "type": "string",
          "description": "IANA zone of the end (default: same).",
          "maxLength": 32768
        }
      },
      "required": [
        "end"
      ]
    }
  },
  "required": [
    "operation",
    "options"
  ]
}