Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

posix_utils

Various POSIX utilities


Description

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

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")

Format

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

Value

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

See Also

Examples

is.POSIXt(as.Date("2009-08-03"))
is.POSIXt(as.POSIXct("2009-08-03"))

lubridate

Make Dealing with Dates a Little Easier

v1.7.10
GPL (>= 2)
Authors
Vitalie Spinu [aut, cre], Garrett Grolemund [aut], Hadley Wickham [aut], Ian Lyttle [ctb], Imanuel Costigan [ctb], Jason Law [ctb], Doug Mitarotonda [ctb], Joseph Larmarange [ctb], Jonathan Boiser [ctb], Chel Hee Lee [ctb], Google Inc. [ctb, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.