chk_time: Check Time

View source: R/chk.R

chk_timeR Documentation

Check Time

Description

Checks if scalar hms object using vld_time().

Usage

chk_time(x, x_name = NULL)

Arguments

x

The object to check.

x_name

A string of the name of object x or NULL.

Value

NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.

See Also

Other check: check_tz()

Examples

chk_time(hms::as_hms("10:00:10"))
try(chk_time(1))

dttr2 documentation built on Sept. 26, 2024, 1:06 a.m.