Skip to main content

Module time

Module time 

Source
Expand description

A UNIX timestamp used as the Bitcoin block time.

Also known as Epoch Time - January 1, 1970.

This differs from other UNIX timestamps in that we only use non-negative values. The Epoch pre-dates Bitcoin so timestamps before this are not useful for block timestamps.

Structsยง

BlockTime
A Bitcoin block timestamp.
BlockTimeDecoder
The decoder for the BlockTime type.
BlockTimeDecoderError
An error consensus decoding an BlockTime.
BlockTimeEncoder
The encoder for the BlockTime type.