[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:127](https://github.com/LuanRT/YouTube.js/blob/fc5571629eca037af7de03f4b903da6add1f300b/src/utils/Utils.ts#L127)