# IEpochUtils

{% hint style="warning" %}
You are referring to the **`Legacy`** version of KyberSwap docs.

For the most updated information, please refer to:

* [**`Classic`**](https://docs.kyberswap.com/~/changes/jCLW7swnDOrPvgw5PHY3/liquidity-solutions/kyberswap-classic)
* [**`Elastic`**](https://docs.kyberswap.com/~/changes/jCLW7swnDOrPvgw5PHY3/liquidity-solutions/kyberswap-elastic)
* [**`Limit Order`**](https://docs.kyberswap.com/~/changes/jCLW7swnDOrPvgw5PHY3/kyberswap-solutions/limit-order)
* [**`Aggregator`**](https://docs.kyberswap.com/~/changes/jCLW7swnDOrPvgw5PHY3/kyberswap-solutions/kyberswap-aggregator)
  {% endhint %}

## interface IEpochUtils

*Source*: [IEpochUtils.sol](https://github.com/KyberNetwork/smart-contracts/blob/master/contracts/sol6/Dao/IEpochUtils.sol)

***

### INDEX[​](https://docs.kyberswap.com/Legacy/api-abi/core-smart-contracts/api_abi-iepochutils#index) <a href="#index" id="index"></a>

\<AUTOGENERATED\_TABLE\_OF\_CONTENTS>

### REFERENCE[​](https://docs.kyberswap.com/Legacy/api-abi/core-smart-contracts/api_abi-iepochutils#reference) <a href="#reference" id="reference"></a>

#### Functions[​](https://docs.kyberswap.com/Legacy/api-abi/core-smart-contracts/api_abi-iepochutils#functions) <a href="#functions" id="functions"></a>

#### `epochPeriodInSeconds`[​](https://docs.kyberswap.com/Legacy/api-abi/core-smart-contracts/api_abi-iepochutils#epochperiodinseconds) <a href="#epochperiodinseconds" id="epochperiodinseconds"></a>

Returns the number of seconds defined in an epoch.

***

function **epochPeriodInSeconds**() external view returns (uint256) **Returns:**\ Number of seconds in an epoch

\
\### \`firstEpochStartTimestamp\` Returns the timestamp when the first epoch starts. \_\_\_ function \_\_firstEpochStartTimestamp\_\_() external view returns (uint256) \*\*Returns:\*\*\ Start timestamp of first epoch\
\### \`getCurrentEpochNumber\` Returns the current epoch number. \_\_\_ function \_\_getCurrentEpochNumber\_\_() external view returns (uint256)\ \*\*Returns:\*\*\ Current epoch number\
\### \`getEpochNumber\` Returns the epoch number at timestamp. \_\_\_ function \_\_getEpochNumber\_\_(uint256 timestamp) external view returns (uint256) | Parameter | Type | Description | | --------- |:-----:|:-----------:| | \`timestamp\` | uint256 | timestamp in epoch time | \*\*Returns:\*\*\ Epoch number at timestamp
