See tidyged.internals::date_period for details.