{
  "id": "sdmx_reporting_period",
  "kind": "datatype",
  "status": "draft",
  "name": "SDMX reporting time period",
  "doc": "Reporting period in SDMX statistical data and metadata, written as a four-digit year, a hyphen, a period letter and a number: A1 for the year, S1-S2 for half-years, T1-T3 for four-month trimesters, Q1-Q4 for quarters, M01-M12 for months, W01-W53 for weeks and D001-D366 for days, with an optional time zone (Z, +hh:mm or -hh:mm). Periods count from the start of the reporting year, 1 January unless a reporting year start day is given, and the year is the year in which the reporting year begins. The SDMX time period (TIME_PERIOD) may also hold Gregorian values such as 2024, 2024-01 or 2024-01-15, date-times and time ranges; those are the datatypes year, yearmonth, date and datetime.",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^\\d{4}-(?:A1|S[12]|T[1-3]|Q[1-4]|M(?:0[1-9]|1[0-2])|W(?:0[1-9]|[1-4]\\d|5[0-3])|D(?:00[1-9]|0[1-9]\\d|[12]\\d{2}|3[0-5]\\d|36[0-6]))(?:Z|[+-](?:14:00|(?:0\\d|1[0-3]):[0-5]\\d))?$",
  "examples": [
    {
      "value": "2000-A1",
      "description": "Reporting year",
      "valid": true
    },
    {
      "value": "2000-S1",
      "description": "First semester",
      "valid": true
    },
    {
      "value": "2000-T1",
      "description": "First trimester",
      "valid": true
    },
    {
      "value": "2000-Q1",
      "description": "First quarter",
      "valid": true
    },
    {
      "value": "2000-M01",
      "description": "January",
      "valid": true
    },
    {
      "value": "2000-W01",
      "description": "First week",
      "valid": true
    },
    {
      "value": "2000-D001",
      "description": "First day",
      "valid": true
    },
    {
      "value": "2000-Q5",
      "description": "A year has four quarters",
      "valid": false
    },
    {
      "value": "2000-M13",
      "description": "A year has twelve months",
      "valid": false
    },
    {
      "value": "2000-01",
      "description": "Gregorian month: the datatype yearmonth",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/sdmx-twg/sdmx-ml/blob/master/schemas/SDMXCommon.xsd"
    },
    {
      "type": "doc",
      "url": "https://sdmx.org/standards-2/"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/SDMX"
    }
  ],
  "quality": {
    "score": 75,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/sdmx_reporting_period.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/sdmx_reporting_period.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/sdmx_reporting_period.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/sdmx_reporting_period",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/sdmx_reporting_period.json"
  }
}