MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / ofHoursMinutes

Method ofHoursMinutes

vm/JavaAPI/src/java/time/ZoneOffset.java:56–59  ·  view source on GitHub ↗
(int hours, int minutes)

Source from the content-addressed store, hash-verified

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) {

Callers 1

invokeStatic9Method · 0.45

Calls 2

ofTotalSecondsMethod · 0.95
absMethod · 0.95

Tested by

no test coverage detected