Files
YouTube.js/docs/api/namespaces/Utils/functions/timeToSeconds.md
2025-01-20 16:49:04 -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:127](https://github.com/LuanRT/YouTube.js/blob/e54e499ff553dab51e6d9d1aebc090b50fec29ba/src/utils/Utils.ts#L127)