MCPcopy Create free account
hub / github.com/MenoData/Time4J / checkUnixTime

Method checkUnixTime

base/src/main/java/net/time4j/Moment.java:2031–2038  ·  view source on GitHub ↗
(long unixTime)

Source from the content-addressed store, hash-verified

2029 }
2030
2031 private static void checkUnixTime(long unixTime) {
2032
2033 if ((unixTime > MAX_LIMIT) || (unixTime < MIN_LIMIT)) {
2034 throw new IllegalArgumentException(
2035 "UNIX time (UT) out of supported range: " + unixTime);
2036 }
2037
2038 }
2039
2040 private static void checkFraction(int nanoFraction) {
2041

Callers 1

MomentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected