to_http_date: Format timestamps to match the HTTP specs
Description
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.
Usage
to_http_date(time, format = NULL)
from_http_date(time)
Value
to_http_date() returns a properly formatted string, while
from_http_date() returns a POSIXct object
Arguments
time
A string or an object coercible to POSIXct
format
In case time is not a POSIXct object a specification how the
string should be interpreted.