POSIXct() mirrors primitive contructors in base R (double(),
character() etc.)
is.POSIXt(x) is.POSIXlt(x) is.POSIXct(x) POSIXct(length = 0L, tz = "UTC") NA_POSIXct_
| 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") |
An object of class POSIXct (inherits from POSIXt) of length 1.
TRUE if x is a POSIXct or POSIXlt object, FALSE otherwise.
#> [1] FALSE#> [1] TRUE