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