(offsetSeconds int)
| 41 | } |
| 42 | |
| 43 | func formatUTCOffset(offsetSeconds int) string { |
| 44 | sign := "+" |
| 45 | if offsetSeconds < 0 { |
| 46 | sign = "-" |
| 47 | offsetSeconds = -offsetSeconds |
| 48 | } |
| 49 | |
| 50 | hours := offsetSeconds / 3600 |
| 51 | minutes := (offsetSeconds % 3600) / 60 |
| 52 | return fmt.Sprintf("%s%02d:%02d", sign, hours, minutes) |
| 53 | } |
no outgoing calls
no test coverage detected