(seconds: number)
| 18 | title: string; |
| 19 | } |
| 20 | export const formatTime = (seconds: number): string => { |
| 21 | const date = new Date(seconds * 1000); |
| 22 | const hh = date.getUTCHours(); |
| 23 | const mm = date.getUTCMinutes(); |
| 24 | const ss = String(date.getUTCSeconds()).padStart(2, '0'); |
| 25 | return hh ? `${hh}:${String(mm).padStart(2, '0')}:${ss}` : `${mm}:${ss}`; |
| 26 | }; |
| 27 | |
| 28 | export const generateCompleteSegments = ( |
| 29 | userSegments: Segment[], |
no outgoing calls
no test coverage detected