lubridate (version 1.7.4)

is.Date: Is x a Date object?

Description

Is x a Date object?

Usage

is.Date(x)

Arguments

x

an R object

Value

TRUE if x is a Date object, FALSE otherwise.

See Also

is.instant(), is.timespan(), is.POSIXt()

Examples

Run this code
# NOT RUN {
is.Date(as.Date("2009-08-03")) # TRUE
is.Date(difftime(now() + 5, now())) # FALSE
# }

Run the code above in your browser using DataCamp Workspace