Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 91bd4ee969
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (20 sloc) 0.78 kb
setOldClass("POSIXt")
setOldClass("POSIXct")
setOldClass("POSIXlt")
#' Is x a POSIXct or POSIXlt object?
#'
#' @export is.POSIXt is.POSIXlt is.POSIXct
#' @aliases is.POSIXt is.POSIXlt is.POSIXct
#' @param x an R object
#' @return TRUE if x is a POSIXct or POSIXlt object, FALSE otherwise.
#' @seealso \code{\link{is.instant}}, \code{\link{is.timespan}}, \code{\link{is.Date}}
#' @keywords logic chron
#' @examples
#' is.POSIXt(as.Date("2009-08-03")) # FALSE
#' is.POSIXt(as.POSIXct("2009-08-03")) # TRUE
is.POSIXt <- function(x) is(x, "POSIXt")
is.POSIXlt <- function(x) is(x, "POSIXlt")
is.POSIXct <- function(x) is(x, "POSIXct")
#' @S3method c POSIXct
c.POSIXct <- function (..., recursive = FALSE)
.POSIXct(c(unlist(lapply(list(...), unclass))), tz = tz(list(...)[[1]]))
Jump to Line
Something went wrong with that request. Please try again.