is.timespan

0th

Percentile

Is x a length of time?

Is x a length of time?

Keywords
logic, chron
Usage
is.timespan(x)
Arguments
x

an R object

Value

TRUE if x is a period, interval, duration, or difftime object, FALSE otherwise.

See Also

is.instant(), is.duration(), is.difftime(), is.period(), is.interval()

Aliases
  • is.timespan
Examples
# NOT RUN {
is.timespan(as.Date("2009-08-03")) # FALSE
is.timespan(duration(second = 1)) # TRUE
# }
Documentation reproduced from package lubridate, version 1.7.4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.