# timeUntilEpoch

> **timeUntilEpoch**(`futureEpoch`, `currentEpoch`): `object`

Defined in: [packages/synapse-core/src/utils/epoch.ts:38](https://github.com/FilOzone/synapse-sdk/blob/7fdc04df4e3c52366a9f0cd55da4c05e20b2ed82/packages/synapse-core/src/utils/epoch.ts#L38)

Calculate the time until a future epoch

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `futureEpoch` | `number` | The future epoch number |
| `currentEpoch` | `number` | The current epoch number |

## Returns

`object`

Object with time until the epoch in various units

### days

> **days**: `number`

### epochs

> **epochs**: `number`

### hours

> **hours**: `number`

### minutes

> **minutes**: `number`

### seconds

> **seconds**: `number`