is.timespan: Is x a length of time?

Description Usage Arguments Value See Also Examples

View source: R/timespans.r

Description

Is x a length of time?

Usage

1

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

Examples

1
2
is.timespan(as.Date("2009-08-03")) # FALSE
is.timespan(duration(second = 1)) # TRUE

lubridate documentation built on May 20, 2017, 12:10 a.m.

Search within the lubridate package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.