Skip to contents

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.

Usage

is.timeBased(x)

timeBased(x)

Arguments

x

Object to test.

Value

A logical scalar.

Author

Jeffrey A. Ryan

Examples


timeBased(Sys.time())
#> [1] TRUE
timeBased(Sys.Date())
#> [1] TRUE

timeBased(200701)
#> [1] FALSE