Description Usage Arguments Value Examples
View source: R/timeconversion.R
Converts the given datestring into a unix-timestamp.
1 | datestring_to_unix(datestring, in_format = "%Y-%m-%d")
|
datestring |
The date to convert given as a string of the specified in_format. |
in_format |
The format code of the given datestring. For the specification see section "Details" in help(strptime) |
Integer representing the date as a unix_timestamp.
1 2 3 4 | datestring_to_unix("1970-01-01")
# 0
datestring_to_unix("1970-01-02")
# 86400
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.