timeUntilEpoch
timeUntilEpoch(
futureEpoch,currentEpoch):object
Defined in: packages/synapse-core/src/utils/epoch.ts:38
Calculate the time until a future epoch
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
futureEpoch | number | The future epoch number |
currentEpoch | number | The current epoch number |
Returns
Section titled “Returns”object
Object with time until the epoch in various units
days:
number
epochs
Section titled “epochs”epochs:
number
hours:
number
minutes
Section titled “minutes”minutes:
number
seconds
Section titled “seconds”seconds:
number