MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / checkAndCastHour

Method checkAndCastHour

src/main/java/com/amazon/ion/Timestamp.java:2919–2927  ·  view source on GitHub ↗
(int hour)

Source from the content-addressed store, hash-verified

2917 }
2918
2919 private static byte checkAndCastHour(int hour)
2920 {
2921 if (hour < 0 || hour > 23)
2922 {
2923 throw new IllegalArgumentException(String.format("Hour %s must be between 0 and 23 inclusive", hour));
2924 }
2925
2926 return (byte) hour;
2927 }
2928
2929 private static byte checkAndCastMinute(int minute)
2930 {

Callers 3

TimestampMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected