(timestampMs: number, locale?: string)
| 77 | if (minutes < 60) { |
| 78 | return `${minutes}m ${Math.round(seconds % 60)}s`; |
| 79 | } |
| 80 | const hours = Math.floor(minutes / 60); |
| 81 | return `${hours}h ${minutes % 60}m`; |
| 82 | } |
| 83 | |
| 84 | export function formatUptime(startedAtMs: number, nowMs: number): string { |
no outgoing calls
no test coverage detected