Checks an object's time zone as returned by dtt_tz().
Usage
check_tz(x, tz = dtt_tz(x), x_name = substitute(x), error = TRUE)See also
Other check:
chk_time()
Examples
check_tz(Sys.time(), "UTC", error = FALSE)
#> Warning: `check_tz()` was deprecated in dttr2 0.1.0.
#> ℹ Replace with `chk::chk_identical(dtt_tz(x), tz)`. To check whether a valid
#> time zone use `chk::chk_tz(x)`.
