powered by
Is x a Date object?
is.Date(x)
an R object
TRUE if x is a Date object, FALSE otherwise.
is.instant(), is.timespan(), is.POSIXt()
is.instant()
is.timespan()
is.POSIXt()
# 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 DataLab