Adapted from OpenZeppelin's Time library: v5.0.0 for solc 0.8.19
_This library provides helpers for manipulating time-related objects.
It uses the following types:
uint48for timepointsuint32for durations
While the library doesn't provide specific types for timepoints and duration, it does provide:
- a
Delaytype to represent duration that can be programmed to change value automatically at a given point - additional helper functions_
function timestamp() internal view returns (uint48)Get the block timestamp as a Timepoint.
function blockNumber() internal view returns (uint48)Get the block number as a Timepoint.