R/check-scalar.R
check_time.Rd
Checks Time
check_time(x, x_name = substitute(x))
The scalar POSIXct to check.
A string of the name of x.
Throws an informative error or returns an invisible copy of x.
try(check_time(Sys.Date())) #> Error : Sys.Date() must be of class 'POSIXct'