R/period.R
timeBased.Rd
Used to verify that the object is one of the known time-based classes in R. Current time-based objects supported are Date, POSIXct, chron, yearmon, yearqtr, and timeDate.
Date
POSIXct
chron
yearmon
yearqtr
timeDate
is.timeBased(x) timeBased(x)
Object to test.
A logical scalar.
Jeffrey A. Ryan
timeBased(Sys.time()) #> [1] TRUE timeBased(Sys.Date()) #> [1] TRUE timeBased(200701) #> [1] FALSE