is.timespan
From lubridate v0.1
by Hadley Wickham
Is x a length of time?
Is x a length of time?
Usage
is.timespan(x)
Arguments
- x
- an R object
Value
- TRUE if x is a period, interval, or difftime object, FALSE otherwise.
See Also
is.instant
, is.duration
, is.difftime
, is.period
, is.interval
Examples
is.timespan(as.Date("2009-08-03")) # FALSE
is.timespan(new_duration(second = 1)) # TRUE}
Community examples
Looks like there are no examples yet.