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