HTTPDate-class | R Documentation |
Conversions between POSIXct to HTTP Date objects.
from |
|
# convert POSIXct to HTTP date string
as(0, "HTTPDate") # Thu, 01 Jan 1970 00:00:00 GMT
as(Sys.time(), "HTTPDate")
# parse HTTP date string to POSIXct
dt = "Thu, 01 Jan 1970 00:00:00 GMT"
class(dt) = "HTTPDate"
as(dt, "POSIXct")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.