See tidyged.internals::date_range for details.