powered by
Checks an object's time zone as returned by dtt_tz().
dtt_tz()
check_tz(x, tz = dtt_tz(x), x_name = substitute(x), error = TRUE)
An invisible copy of x (if it doesn't throw an error).
The object to check.
A string of the time zone to check that x's matches.
A string of the name of the object.
A flag indicating whether to throw an informative error or immediately generate an informative message if the check fails.
Other check: chk_time()
chk_time()
check_tz(Sys.time(), "UTC", error = FALSE)
Run the code above in your browser using DataLab