Decimal year (year with a fraction)
ID decimal_year
DatatypeNot PIIDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
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 datatype
- Date and time
datetime - Categories
- Date and time, Scientific
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
decimalyearbyfieldfield, common/dateandtime.yaml
- Supported by tools
- metacrafter
Regular expression
^[12]\d{3}\.\d{1,6}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 1994.83 | AIMS Scott Reef coral monitoring (Deci_Year) |
| 2019.0417 | mid-January 2019 |
| 1994 invalid | a whole year: year |
| 19.94 invalid | not a year |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/decimal_year - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/decimal_year.yamlon GitHub