Check if the object is a mixtime

is_mixtime(x)

Arguments

x

An object.

Value

TRUE if the object inherits from the mixtime class.

Examples

is_mixtime(Sys.Date())
#> [1] FALSE
is_mixtime(yearmonth(1))
#> Error in loadNamespace(x): there is no package called ‘vecvec’