powered by
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)
A logical value indicating if the input object is of class POSIXct.
An object to be tested for POSIXct class inheritance.
x <- as.POSIXct("2021-01-01") is.POSIXct(x) # TRUE y <- Sys.Date() is.POSIXct(y) # FALSE
Run the code above in your browser using DataLab