Skip to content

timeUntilEpoch

timeUntilEpoch(futureEpoch, currentEpoch): object

Defined in: packages/synapse-core/src/utils/epoch.ts:38

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