MCPcopy Create free account
hub / github.com/code100x/cms / convertTimeToSeconds

Function convertTimeToSeconds

src/lib/utils.ts:134–136  ·  view source on GitHub ↗
(timeStr: string)

Source from the content-addressed store, hash-verified

132 seekBar.appendChild(fragment);
133};
134export const convertTimeToSeconds = (timeStr: string): number => {
135 return (timeStr || '').split(':').reduce((acc, time) => 60 * acc + +time, 0);
136};
137
138export const getCurrentSegmentName = (
139 timeStr: string,

Callers 1

getCurrentSegmentNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected