x
R/duration.R
is_duration.Rd
This function determines if the input is a duration object.
is_duration(x)
[object]
An object.
TRUE if x inherits from "clock_duration", otherwise FALSE.
TRUE
"clock_duration"
FALSE
is_duration(1) #> [1] FALSE is_duration(duration_days(1)) #> [1] TRUE