POSIXct()
mirrors primitive contructors in base R (double()
,
character()
etc.)
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")
Examples
is.POSIXt(as.Date("2009-08-03"))
#> [1] FALSE
is.POSIXt(as.POSIXct("2009-08-03"))
#> [1] TRUE