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