date2num | R Documentation |
convert character dates to numeric dates (seconds since UNIX epoch by default).
date2num(d, tz = "UTC", ...)
d |
a character vector of dates |
tz, format |
as expected by |
... |
any other good stuff you want to pass to |
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.
as.POSIXct
Other date manipulators:
num2date()
date2num("1988-03-12 07:00:00", tz = "UTC", format = "%Y-%m-%d %H:%M:%S")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.