is.POSIXct {One4All} | R Documentation |
This function checks if the given object is of class POSIXct. It returns TRUE if the object inherits the POSIXct class, otherwise FALSE.
is.POSIXct(x)
x |
An object to be tested for POSIXct class inheritance. |
A logical value indicating if the input object is of class POSIXct.
x <- as.POSIXct("2021-01-01")
is.POSIXct(x) # TRUE
y <- Sys.Date()
is.POSIXct(y) # FALSE