to_http_date | R Documentation |
Dates/times in HTTP headers needs a specific format to be valid, and is furthermore always given in GMT time. These two functions aids in converting back and forth between the required format.
to_http_date(time, format = NULL) from_http_date(time)
time |
A string or an object coercible to POSIXct |
format |
In case |
to_http_date()
returns a properly formatted string, while
from_http_date()
returns a POSIXct object
time <- to_http_date(Sys.time()) time from_http_date(time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.