R/is.POSIXct.R

Defines functions is.POSIXct

#' Checks if given object is of class POSIXct
#'
#' @param x An object to be checked
#' @export
#'
is.POSIXct <- function(x) {
  .Deprecated("lubridate::is.POSIXct")
  x_classes <- class(x)
  return(length(x_classes) == 2 &&
    x_classes[1] == "POSIXct" &&
    x_classes[2] == "POSIXt")
}
Sumpfohreule/MyUtilities documentation built on July 1, 2022, 1:21 a.m.