{
  "id": "decimal_year",
  "kind": "datatype",
  "status": "draft",
  "name": "Decimal year (year with a fraction)",
  "doc": "A point in time written as a number: the year and, as a decimal fraction, the part of the year that has passed (1994.83 is late October 1994). Long time series of climate, ocean, geodesy and ecological monitoring use it because it plots and regresses as a plain number; R lubridate writes it with decimal_date(). A whole year without a fraction is year.",
  "parent": "datetime",
  "is_pii": false,
  "categories": [
    "datetime",
    "science"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^[12]\\d{3}\\.\\d{1,6}$",
  "examples": [
    {
      "value": "1994.83",
      "description": "AIMS Scott Reef coral monitoring (Deci_Year)",
      "valid": true
    },
    {
      "value": "2019.0417",
      "description": "mid-January 2019",
      "valid": true
    },
    {
      "value": "1994",
      "description": "a whole year: year",
      "valid": false
    },
    {
      "value": "19.94",
      "description": "not a year",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://lubridate.tidyverse.org/reference/decimal_date.html"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "decimalyearbyfield",
        "type": "field",
        "match": "regex",
        "file": "common/dateandtime.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/decimal_year.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/decimal_year.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/decimal_year.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/decimal_year",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/decimal_year.json"
  }
}