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

Method ofSIUnits

base/src/main/java/net/time4j/MachineTime.java:297–308  ·  view source on GitHub ↗
(
        long seconds,
        int fraction
    )

Source from the content-addressed store, hash-verified

295 * @since 2.0
296 */
297 public static MachineTime<SI> ofSIUnits(
298 long seconds,
299 int fraction
300 ) {
301
302 if ((seconds == 0) && (fraction == 0)) {
303 return UTC_ZERO;
304 }
305
306 return new MachineTime<>(seconds, fraction, UTC);
307
308 }
309
310 /**
311 * <p>Creates a machine time duration on the POSIX scale. </p>

Callers 15

isLongerThanMethod · 0.95
ofSIUnitsMethod · 0.95
ofSIUnitsNegativeMethod · 0.95
ofSISecondsBigDecimalMethod · 0.95
ofSISecondsDoubleMethod · 0.95
plusMachineTimeMethod · 0.95
minusMachineTimeMethod · 0.95
plusSecondsMethod · 0.95
minusSecondsMethod · 0.95
plusNanosecondsMethod · 0.95

Calls

no outgoing calls

Tested by 15

isLongerThanMethod · 0.76
ofSIUnitsMethod · 0.76
ofSIUnitsNegativeMethod · 0.76
ofSISecondsBigDecimalMethod · 0.76
ofSISecondsDoubleMethod · 0.76
plusMachineTimeMethod · 0.76
minusMachineTimeMethod · 0.76
plusSecondsMethod · 0.76
minusSecondsMethod · 0.76
plusNanosecondsMethod · 0.76