powered by
Is x a length of time?
is.timespan(x)
an R object
TRUE if x is a period, interval, duration, or difftime object, FALSE otherwise.
is.instant(), is.duration(), is.difftime(), is.period(), is.interval()
is.instant()
is.duration()
is.difftime()
is.period()
is.interval()
# NOT RUN { is.timespan(as.Date("2009-08-03")) # FALSE is.timespan(duration(second = 1)) # TRUE # }
Run the code above in your browser using DataLab