(int hours, int minutes)
| 54 | } |
| 55 | |
| 56 | public static ZoneOffset ofHoursMinutes(int hours, int minutes) { |
| 57 | int sign = hours < 0 || minutes < 0 ? -1 : 1; |
| 58 | return ofTotalSeconds(hours * 3600 + sign * Math.abs(minutes) * 60); |
| 59 | } |
| 60 | |
| 61 | public static ZoneOffset ofTotalSeconds(int totalSeconds) { |
| 62 | if (totalSeconds == 0) { |
no test coverage detected