is.difftime: Is x a difftime object?

View source: R/difftimes.r

is.difftimeR Documentation

Is x a difftime object?

Description

Is x a difftime object?

Usage

is.difftime(x)

Arguments

x

an R object

Value

TRUE if x is a difftime object, FALSE otherwise.

See Also

is.instant(), is.timespan(), is.interval(), is.period().

Examples

is.difftime(as.Date("2009-08-03")) # FALSE
is.difftime(make_difftime(days = 12.4)) # TRUE

hadley/lubridate documentation built on Feb. 3, 2024, 9:37 a.m.