codex-contracts-eth/test/time.js

7 lines
230 B
JavaScript
Raw Normal View History

2022-02-15 16:01:54 +00:00
const now = () => Math.round(Date.now() / 1000)
const hours = (amount) => amount * minutes(60)
const minutes = (amount) => amount * seconds(60)
const seconds = (amount) => amount
module.exports = { now, hours, minutes, seconds }