Description Usage Arguments Value Author(s)
Timestamps are stored internally in the NXT H2 database in units of seconds since the genesis block. This function converts back and forth between the internal format and POSIXct timestamp objects. If the function is not explicitly told which direction to convert to it will try to automatically determine the correct direction based on inputs.
1 2 3 | nxt.convert.ts(ts, tz = "UTC",
from.db = length(grep("^(character|POSIX[lc]?t)", class(ts))) == 0,
genesis.ts = nxt.genesis.ts)
|
ts |
a vector of timestamp values. Can be numeric, in which case values are assumed to reprsent seconds since genesis block; POSIX timestamp objects; or character, which is converted to POSIXct |
tz |
timezone to use when converting character to POSIXct. Defaults to "UTC" |
from.db |
Boolean. If true, try to convert |
genesis.ts |
timestamp of genesis block in POSIXct
format. Defaults to |
A vector of timestamps in the desired format.
David M. Kaplan dmkaplan2000@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.