R/vld.R
vld_time.Rd
Validates that an object is scalar hms::hms object using inherits(x, class) && length(x) == 1L && !anyNA(x).
inherits(x, class) && length(x) == 1L && !anyNA(x)
vld_time(x)
The object to check.
A flag indicating whether the condition was met.
chk_time()
vld_time(1) #> [1] FALSE vld_time(hms::as_hms("10:12:59")) #> [1] TRUE