Description Usage Arguments Value Author(s) Examples
Conversion between EPOCH and UNIX formats.
1 2 | epoch_to_unix(epoch, date, tz = "UTC")
unix_to_epoch(unix, origin = "1970-01-01", tz = "UTC", returnChar = TRUE)
|
epoch |
[character] Character string of the date in EPOCH format. The only accepted formats are "%Y-%m-%d %H:%M:%S" or "%H:%M:%S" |
date |
[character] If |
unix |
[numeric] Time or date in unix format. |
origin |
[character] For |
tz |
[character] Time zone. [Default: "UTC"] |
returnChar |
[boolean] If |
epoch_to_unix
return a numeric
(UNIX format).
unix_to_epoch
returns a character
or POSIXct
(EPOCH format).
Víctor Moreno-González <vmorg@unileon.es>
1 2 3 4 5 6 7 | # Epoch to unix conversion
epoch_to_unix(epoch = "2020-04-13 13:11:00")
epoch_to_unix{epoch = "13:11:00", date = "2020-04-13"}
# Unix to epoch conversion
unix_to_epoch(1586783460, returnChar = T)
unix_to_epoch(1586783460, returnChar = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.