r-lib/clock

dst_arithmetic_resolver() vs dst_resolver() is still a bit clunky

Closed this issue · 1 comments

i.e. this error could probably be thrown earlier

> adjust_year(as.Date("2019-01-01"), 2020, dst_resolver = dst_arithmetic_resolver())
Error: Internal error: 'directional' is not allowed for `dst_nonexistant` here.
Run `rlang::last_error()` to see where the error occurred.

Fixed by removing resolvers in favor of lower level args