See tidyged.internals::date_calendar for details.