Skip to main content

timestamp

Function timestamp 

Source
pub fn timestamp(epoch_seconds: f64) -> CborValue
Expand description

An epoch-seconds timestamp as rpcv2Cbor encodes it: tag 1 over a double. A float (rather than an integer for whole seconds) keeps millisecond precision and is what every SDK’s decoder accepts.