Description Usage Arguments Examples
the as.seconds
functions take an object and depending on its
type they convert it to the amount of seconds it contains. Date and
POSIXct objects are considered as difftime object from the unix epoch.
1 | as.seconds(value)
|
value |
the object that is to be converted into seconds. |
1 2 | EPOCH <- structure(0, class = c("POSIXct", "POSIXt"), tzone = "UTC")
as.seconds(EPOCH) # gives 0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.