vld_time {dttr2} | R Documentation |
Validate Time
Description
Validates that an object is scalar hms::hms object
using
inherits(x, class) && length(x) == 1L && !anyNA(x)
.
Usage
vld_time(x)
Arguments
x |
The object to check. |
Value
A flag indicating whether the condition was met.
See Also
Examples
vld_time(1)
vld_time(hms::as_hms("10:12:59"))
[Package dttr2 version 0.5.0 Index]