{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-maps/json-schema/microsoft-azure-maps-timezone-result-schema.json",
  "title": "TimezoneResult",
  "description": "This object is returned from a successful Timezone By ID call or By Coordinates\ncall",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-maps-timezone-api-openapi.yml#/components/schemas/TimezoneResult",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "description": "Version property",
      "readOnly": true
    },
    "referenceUtcTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Reference Utc Timestamp property",
      "readOnly": true
    },
    "timeZones": {
      "type": "array",
      "description": "TimeZoneId array",
      "items": {
        "$ref": "#/$defs/TimezoneId"
      },
      "readOnly": true
    }
  },
  "$defs": {
    "CountryRecord": {
      "type": "object",
      "description": "A country/region record.",
      "properties": {
        "name": {
          "type": "string",
          "description": "country/region Name",
          "readOnly": true
        },
        "code": {
          "type": "string",
          "description": "ISO-3166 2-letter country/region code for the country/region.",
          "readOnly": true
        }
      }
    },
    "ReferenceTime": {
      "type": "object",
      "description": "Details in effect at the local time.",
      "properties": {
        "tag": {
          "type": "string",
          "description": "Time zone name in effect at the reference timestamp (i.e. PST or PDT depending\nwhether Daylight Savings Time is in effect).",
          "readOnly": true
        },
        "standardOffset": {
          "type": "string",
          "description": "UTC offset in effect at the `ReferenceUTCTimestamp`.",
          "readOnly": true
        },
        "daylightSavings": {
          "type": "string",
          "description": "Time saving in minutes in effect at the `ReferenceUTCTimestamp`.",
          "readOnly": true
        },
        "wallTime": {
          "type": "string",
          "description": "Current wall time at the given time zone as shown in the `Tag` property.",
          "readOnly": true
        },
        "posixTzValidYear": {
          "type": "integer",
          "format": "int32",
          "description": "The year this POSIX string is valid for. Note: A POSIX string will only be\nvalid in the given year.",
          "readOnly": true
        },
        "posixTz": {
          "type": "string",
          "description": "POSIX string used to set the time zone environment variable.",
          "readOnly": true
        },
        "sunrise": {
          "type": "string",
          "format": "date-time",
          "description": "Sunrise at the given time zone as shown in the `Tag` property, populated only\nwhen the call is `byCoordinates`. The sunrise is represented as a UTC timestamp\nconforming to [RFC 3339, section\n5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). Note that\nthe Timezone API does not return sunrise and sunset times when solar day is\nobserved in the requested region.",
          "readOnly": true
        },
        "sunset": {
          "type": "string",
          "format": "date-time",
          "description": "Sunset at the given time zone as shown in the `Tag` property, populated only\nwhen the call is `byCoordinates`. The sunset is represented as a UTC timestamp\nconforming to [RFC 3339, section\n5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). Note that\nthe Timezone API does not return sunrise and sunset times when solar day is\nobserved in the requested region.",
          "readOnly": true
        }
      }
    },
    "RepresentativePoint": {
      "type": "object",
      "description": "Representative point property",
      "properties": {
        "latitude": {
          "type": "number",
          "format": "float",
          "description": "Latitude property",
          "readOnly": true
        },
        "longitude": {
          "type": "number",
          "format": "float",
          "description": "Longitude property",
          "readOnly": true
        }
      }
    },
    "TimeTransition": {
      "type": "object",
      "description": "Represents a time zone transition.",
      "properties": {
        "tag": {
          "type": "string",
          "description": "Tag property",
          "readOnly": true
        },
        "standardOffset": {
          "type": "string",
          "description": "StandardOffset property",
          "readOnly": true
        },
        "daylightSavings": {
          "type": "string",
          "description": "DaylightSavings property",
          "readOnly": true
        },
        "utcStart": {
          "type": "string",
          "format": "date-time",
          "description": "Start date, start time for this transition period",
          "readOnly": true
        },
        "utcEnd": {
          "type": "string",
          "format": "date-time",
          "description": "End date, end time for this transition period",
          "readOnly": true
        }
      }
    },
    "TimezoneId": {
      "type": "object",
      "description": "Timezone ID information.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id property",
          "readOnly": true
        },
        "aliases": {
          "type": "array",
          "description": "An array of time zone ID aliases. Only returned when [options]=*zoneinfo* or\n*all*.\n\nNote: may be null.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "countries": {
          "type": "array",
          "description": "An array of country/region records. Only returned when [options]=*zoneinfo* or\n*all*.",
          "items": {
            "$ref": "#/$defs/CountryRecord"
          },
          "readOnly": true
        },
        "names": {
          "$ref": "#/$defs/TimezoneNames",
          "description": "Timezone names object."
        },
        "referenceTime": {
          "$ref": "#/$defs/ReferenceTime",
          "description": "Details in effect at the local time.",
          "readOnly": true
        },
        "representativePoint": {
          "$ref": "#/$defs/RepresentativePoint",
          "description": "Representative point property",
          "readOnly": true
        },
        "timeTransitions": {
          "type": "array",
          "description": "Time zone DST transitions from [transitionsFrom] until timestamp + 1 year.",
          "items": {
            "$ref": "#/$defs/TimeTransition"
          },
          "readOnly": true
        }
      }
    },
    "TimezoneNames": {
      "type": "object",
      "description": "Timezone names object.",
      "properties": {
        "iso6391LanguageCode": {
          "type": "string",
          "description": "The ISO 639-1 language code of the Names",
          "readOnly": true
        },
        "generic": {
          "type": "string",
          "description": "Generic Name",
          "readOnly": true
        },
        "standard": {
          "type": "string",
          "description": "Standard Name",
          "readOnly": true
        },
        "daylight": {
          "type": "string",
          "description": "Daylight Name",
          "readOnly": true
        }
      }
    }
  }
}