powered by
Date() mirrors primitive constructors in base R (double(), character() etc.)
Date()
double()
character()
is.Date(x)Date(length = 0L)NA_Date_
Date(length = 0L)
NA_Date_
An object of class Date of length 1.
Date
an R object
A non-negative number specifying the desired length. Supplying an argument of length other than one is an error.
is.instant(), is.timespan(), is.POSIXt(), POSIXct()
is.instant()
is.timespan()
is.POSIXt()
POSIXct()
is.Date(as.Date("2009-08-03")) # TRUE is.Date(difftime(now() + 5, now())) # FALSE
Run the code above in your browser using DataLab