Extracts a specific parameter from a year unit object constructed by era_year().

era_year_label(x)

era_year_days(x)

Arguments

x

An object of class era_year.

Value

Value of the parameter.

See also

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

Examples

julian <- era_year("Julian", 365.25) era_year_label(julian)
#> [1] "Julian"
era_year_days(julian)
#> [1] 365.25