Skip to content

timeUntilEpoch

timeUntilEpoch(futureEpoch, currentEpoch): object

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

Calculate the time until a future epoch

Parameter Type Description
futureEpoch bigint The future epoch
currentEpoch bigint The current epoch

object

Object with time until the epoch in various units

days: number

epochs: bigint

hours: number

minutes: number

seconds: number