this_year: Current year

View source: R/utils-date.R

this_yearR Documentation

Current year

Description

Returns the current year as a year vector, in the era system specified by era.

Usage

this_year(era = "CE")

Arguments

era

An era object or label understood by era(). Defaults to the Common Era (era("CE")).

Value

A yr vector with the current year.

See Also

Other era helper functions: era, era_parameters, era_year, era_year_parameters, is_era(), is_era_year(), is_yr()

Examples

# This year in the Common Era
this_year()
# This year in the Holocene Epoch
this_year("HE")

era documentation built on April 4, 2025, 2:09 a.m.