Year
ID year
DatatypeNot PII
A calendar year in western notation like 2022 or 1913
- Categories
- Date and time
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Microsoft CDM
means.calendar.year- Sherlock and Sato
year- Quality
- 80/100 · missing: longer description, negative example, translation
- Metacrafter rules
- 25 rules (22 by field name, 3 by value)
aryearknownfield, ar/ar_datetime.yamlyearbydatafiltereddata, common/dateandtime.yamlyearbydataimprecisedata, common/dateandtime.yamlyearbygestionnamefield, common/dateandtime.yamlyearbylocalnamefield, common/dateandtime.yamlyearknownfield, common/dateandtime.yamlyearknownpatfield, common/dateandtime.yamlyearbyperiodonamefield, common/periods.yaml- and 17 more (see the JSON)
- Supported by tools
- csv-detective, Doduo, Frictionless Table Schema, Google Data Studio, Logstash and Elastic grok patterns, metacrafter, Sato, Sherlock
Regular expression
^\d{4}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 2022 | Year 2022 |
| 1243 | Year 1243 |
Patterns
Specific representations of this datatype.
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| year_jp_era | Year in a Japanese era (wareki) pattern | datetime | JP | Year written with a Japanese era name and the year of that era, in full (平成4年) or with the one-character abbreviation of the era (昭58,... |
| year_th_be | Year in the Thai Buddhist era pattern | datetime | TH | Year of the Thai solar calendar, counted in the Buddhist era (พ.ศ.): the Gregorian year plus 543, as in 2561 for 2018. Thai licence and... |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| birth_year | Year of birth PII | persons, pii, datetime | global | Year in which a person was born, written with four digits, for example 1984. Data sets publish it instead of the full date of birth to... |
| fiscal_year | Fiscal (financial) year | datetime, finances | global | Financial or fiscal year that does not start on 1 January, written as the two calendar years it spans: the first year and the last two... |
Sources
- wikipedia: Year (en.wikipedia.org)
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/year - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/year.yamlon GitHub