(micros: number)
| 614 | } |
| 615 | |
| 616 | const formatTimeOfDay = (micros: number): string => { |
| 617 | const seconds = (micros / 1_000_000) | 0 |
| 618 | const fraction = micros - seconds * 1_000_000 |
| 619 | const base = `${twoDigits[(seconds / 3600) | 0]}:${twoDigits[((seconds / 60) | 0) % 60]}:${twoDigits[seconds % 60]}` |
| 620 | if (fraction === 0) return base |
| 621 | return `${base}.${pad(fraction, 6).replace(/0+$/, "")}` |
| 622 | } |
| 623 | |
| 624 | const zoneRegex = /^(?:Z|([+-])(\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)$/ |
| 625 |
no test coverage detected