TimeHelpers
The contract performs time operations.
These functions are used to calculate monthly and Proof of Use epochs.
The contract performs time operations.
These functions are used to calculate monthly and Proof of Use epochs.
calculateProofOfUseLockEndTime(uint256 month, uint256 lockUpPeriodDays) → uint256 timestamp externalgetCurrentMonth() → uint256 externaltimestampToDay(uint256 timestamp) → uint256 externaltimestampToYear(uint256 timestamp) → uint256 externaladdDays(uint256 fromTimestamp, uint256 n) → uint256 externaladdMonths(uint256 fromTimestamp, uint256 n) → uint256 externaladdYears(uint256 fromTimestamp, uint256 n) → uint256 externaltimestampToMonth(uint256 timestamp) → uint256 publicmonthToTimestamp(uint256 month) → uint256 timestamp public