num2date: translate numeric dates back to 'POSIX*'

View source: R/num2date.R

num2dateR Documentation

translate numeric dates back to POSIX*

Description

will convert a numeric vector (seconds since UNIX epoch) using as.POSIXct.

Usage

num2date(d, tz = "UTC", origin = "1970-01-01", ...)

Arguments

d

a numeric vector of dates.

tz, origin

as expected by as.POSIXct.

...

any other as.POSIXct params

Note

beware if you open any csvs in excel and re-save, the dates will likely be put into an absurb ambiguous form. additionally, seconds tend to be obliterated.

See Also

as.POSIXct

Other date manipulators: date2num()

Examples

num2date(574153200)

williamcioffi/chf documentation built on June 14, 2025, 10:05 p.m.