Is x a Date object?

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.