is.Date

0th

Percentile

Is x a Date object?

Is x a Date object?

Keywords
logic, chron
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()

Aliases
  • is.Date
Examples
# NOT RUN {
is.Date(as.Date("2009-08-03")) # TRUE
is.Date(difftime(now() + 5, now())) # FALSE
# }
Documentation reproduced from package lubridate, version 1.7.4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.