Skip to contents

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

Usage

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, era_parameters, era_year, is_era(), is_era_year(), is_yr(), this_year()

Examples

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