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