Learn R Programming

rbtc (version 0.1-7)

int2date: Convert time stamp to POSIX

Description

This function returns the associated POSIXct time to the time stamp integer in a block header.

Usage

int2date(x)

Value

An object of class POSIXct, POSIXt

Arguments

x

integer, the block header time stamp

Author

Bernhard Pfaff

References

https://en.bitcoin.it/wiki/Block_timestamp

See Also

Other UtilityFuncs: bkfee, blockattime, blockstats, date2int, intMaxDay, intMinDay, intRangeDay, intRangePeriod, timeofblock, txfee, txids, txinids, txstats, utxoage, utxotype, utxovalue

Examples

Run this code
ts <- 1532954868
int2date(ts)

Run the code above in your browser using DataLab