is.Date: Is x a Date object?

Description Usage Arguments Value See Also Examples

View source: R/Dates.r

Description

Is x a Date object?

Usage

1

Arguments

x

an R object

Value

TRUE if x is a Date object, FALSE otherwise.

See Also

is.instant, is.timespan, is.POSIXt

Examples

1
2
is.Date(as.Date("2009-08-03")) # TRUE
is.Date(difftime(now() + 5, now())) # FALSE

lubridate documentation built on May 30, 2017, 2:10 a.m.