(offset: number, delimiter: string = "")
| 789 | } |
| 790 | |
| 791 | function formatTimezone(offset: number, delimiter: string = ""): string { |
| 792 | const sign = offset > 0 ? "-" : "+"; |
| 793 | const absOffset = Math.abs(offset); |
| 794 | const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); |
| 795 | const minutes = addLeadingZeros(absOffset % 60, 2); |
| 796 | return sign + hours + delimiter + minutes; |
| 797 | } |
no test coverage detected