is.POSIXt

0th

Percentile

Various POSIX utilities

POSIXct() mirrors primitive contructors in base R (double(), character() etc.)

Keywords
datasets, logic, chron
Usage
is.POSIXt(x)

is.POSIXlt(x)

is.POSIXct(x)

POSIXct(length = 0L, tz = "UTC")

NA_POSIXct_

Arguments
x

an R object

length

A non-negative number specifying the desired length. Supplying an argument of length other than one is an error.

tz

a timezone (defaults to "utc")

Value

TRUE if x is a POSIXct or POSIXlt object, FALSE otherwise.

Format

An object of class POSIXct (inherits from POSIXt) of length 1.

See Also

is.instant(), is.timespan(), is.Date()

Aliases
  • is.POSIXt
  • is.POSIXlt
  • is.POSIXct
  • POSIXct
  • NA_POSIXct_
Examples
# NOT RUN {
is.POSIXt(as.Date("2009-08-03"))
is.POSIXt(as.POSIXct("2009-08-03"))
# }
Documentation reproduced from package lubridate, version 1.7.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.