Last chance! 50% off unlimited learning
Sale ends in
Is x a difftime object?
is.difftime(x)
TRUE if x is a difftime object, FALSE otherwise.
an R object
is.instant()
, is.timespan()
, is.interval()
,
is.period()
.
is.difftime(as.Date("2009-08-03")) # FALSE
is.difftime(make_difftime(days = 12.4)) # TRUE
Run the code above in your browser using DataLab