[youtubei.js](../../../README.md) / [Utils](../README.md) / timeToSeconds # Function: timeToSeconds() > **timeToSeconds**(`time`): `number` Converts time (h:m:s) to seconds. ## Parameters • **time**: `string` ## Returns `number` seconds ## Defined in [src/utils/Utils.ts:140](https://github.com/LuanRT/YouTube.js/blob/af92984523f90200a18314b94478a2697c9deab0/src/utils/Utils.ts#L140)