timeUntilEpoch
function timeUntilEpoch(futureEpoch, currentEpoch): object;Defined in: packages/synapse-sdk/src/utils/epoch.ts:52
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;