Is x a length of time?

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.