Skip to contents

Get first and last day of year.

Usage

first_day_of_year(year = NULL)

last_day_of_year(year = NULL)

Arguments

year

Numeric value as year (format: YYYY).

Value

Character string as date (format: YYYY-MM-DD).

See also

Other helpers: climaemet_news(), dms2decdegrees()

Examples

first_day_of_year(2000)
#> [1] "2000-01-01"
last_day_of_year(2020)
#> [1] "2020-12-31"