lubridate (version 0.1)

is.difftime: Is x a duration (difftime) object?

Description

Is x a duration (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, duration

Examples

Run this code
is.difftime(as.Date("2009-08-03")) # FALSE
is.difftime(new_duration(days = 12.4)) # TRUE}

Run the code above in your browser using DataCamp Workspace