R/moment.R
is_moment.Rd
Check if the object is a moment
is_moment(x)
An object.
TRUE if the object inherits from the moment class.
TRUE
moment
is_moment(Sys.Date()) #> [1] FALSE is_moment(yearmonth(1)) #> [1] TRUE