Learn R Programming

dttr2 (version 0.5.2)

vld_time: 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)

Value

A flag indicating whether the condition was met.

Arguments

x

The object to check.

See Also

chk_time()

Examples

Run this code
vld_time(1)
vld_time(hms::as_hms("10:12:59"))

Run the code above in your browser using DataLab