Description Usage Arguments Value Author(s) See Also Examples
Utility functions.
1 2 | tsFromEpoch(object, x)
epochFromTS(object, x)
|
object |
an object of class |
x |
either an integer giving the epoch number or the timestamp in a |
either a timestamp corresponding to an epoch number or the epoch number corresponding to a timestamp.
Marco Geraci
1 2 3 4 5 6 7 | data(gt1m_sample)
tsFromEpoch(gt1m_sample, 10000)
# [1] "2011-12-10 01:39:45 GMT"
epochFromTS(gt1m_sample, as.POSIXlt(strptime('2011-12-10 01:39:45', '%Y-%m-%d %H:%M:%S')))
# [1] 10000
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.