Skip to content

timeUntilEpoch

function timeUntilEpoch(futureEpoch, currentEpoch): object;

Defined in: packages/synapse-sdk/src/utils/epoch.ts:52

Calculate the time until a future epoch

ParameterTypeDescription
futureEpochnumberThe future epoch number
currentEpochnumberThe current epoch number

object

Object with time until the epoch in various units

days: number;
epochs: number;
hours: number;
minutes: number;
seconds: number;