{
  "id": "date_range",
  "kind": "datatype",
  "status": "draft",
  "name": "Date range",
  "doc": "Period between two calendar dates written as one value: the dates joined by a dash, a slash or a word (al, a, au, bis, to, until), as in 5-4-02 al 27-5-02, 22-1-02/27-2-02, 01.03.2020 - 31.03.2020 or the ISO 8601 interval 2020-01-01/2020-03-31. Field data, schedules and registers give the period that a measurement, a harvest cut, a contract or an exhibition covers this way. Two years only are year_range, two times of a day timerange.",
  "parent": "timespan",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "examples": [
    {
      "value": "5-4-02 al 27-5-02",
      "description": "growth period between two alfalfa cuts, INTA Rafaela cultivar network (AquaCrop data, UNR)",
      "valid": true
    },
    {
      "value": "22-1-02/27-2-02",
      "description": "the same, slash form",
      "valid": true
    },
    {
      "value": "2020-01-01/2020-03-31",
      "description": "ISO 8601 time interval",
      "valid": true
    },
    {
      "value": "01.03.2020 - 31.03.2020",
      "valid": true
    },
    {
      "value": "2019-2020",
      "description": "two years: year_range",
      "valid": false
    },
    {
      "value": "08:00-22:00",
      "description": "two times of day: timerange",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_8601#Time_intervals"
    }
  ],
  "translations": {
    "es": {
      "name": "Rango de fechas"
    },
    "ru": {
      "name": "Диапазон дат"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "daterangevalue",
        "type": "data",
        "match": "func",
        "file": "common/dateandtime.yaml"
      }
    ]
  },
  "quality": {
    "score": 70,
    "missing": [
      "regexp",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/date_range.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/date_range.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/date_range.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/date_range",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/date_range.json"
  }
}