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))
#> Warning: tz(): Don't know how to compute timezone for object of class numeric; returning "UTC".
#> Error in loadNamespace(x): there is no package called ‘vecvec’