PureEpochs
Author: M^0 Labs
Defines epochs as periods away from STARTING_TIMESTAMP timestamp.
Provides a uint16
epoch clock value.
State Variables
STARTING_TIMESTAMP
The timestamp of the start of Epoch 1.
EPOCH_PERIOD
The approximate target of seconds an epoch should endure.
Functions
currentEpoch
Returns the current epoch number.
timeRemainingInCurrentEpoch
Returns the remaining time in the current epoch.