Objects with useful mappings from month names and weekday names to integer codes.
Month codes (clock_months)
january == 1february == 2march == 3april == 4may == 5june == 6july == 7august == 8september == 9october == 10november == 11december == 12
Format
clock_months: An environment containing month codes.
clock_weekdays: An environment containing weekday codes.
clock_iso_weekdays: An environment containing ISO weekday codes.
Examples
weekday(clock_weekdays$wednesday)
#> <weekday[1]>
#> [1] Wed
year_month_weekday(2019, clock_months$april, clock_weekdays$monday, 1:4)
#> <year_month_weekday<day>[4]>
#> [1] "2019-04-Mon[1]" "2019-04-Mon[2]" "2019-04-Mon[3]" "2019-04-Mon[4]"
year_week_day(2020, 52, start = clock_weekdays$monday)
#> <year_week_day<Monday><week>[1]>
#> [1] "2020-W52"
iso_year_week_day(2020, 52, clock_iso_weekdays$thursday)
#> <iso_year_week_day<day>[1]>
#> [1] "2020-W52-4"
