Files
YouTube.js/docs/api/namespaces/Utils/functions/timeToSeconds.md
2025-06-08 13:48:03 -03:00

22 lines
396 B
Markdown

[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)