Description Usage Arguments Value Examples
View source: R/timeconversion.R
Converts the given unix_timestamp into a date-string.
1 | unix_to_datestring(unix_timestamp, out_format = "%Y-%m-%d")
|
unix_timestamp |
The unix-timestamp to convert. A unix_timestamp is the number of seconds since the 1st January 1970 (as an integer). |
out_format |
The format code of the return value. For the specification see section "Details" in help(strptime) |
String representing the date corresponding to the unix_timestamp formatted according to out_format.
1 2 3 4 | unix_to_datestring(0)
# 1970-01-01
unix_to_datestring(86400)
# 1970-01-02
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.