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

Method ofPosixUnits

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

Source from the content-addressed store, hash-verified

264 * @since 2.0
265 */
266 public static MachineTime<TimeUnit> ofPosixUnits(
267 long seconds,
268 int fraction
269 ) {
270
271 if ((seconds == 0) && (fraction == 0)) {
272 return POSIX_ZERO;
273 }
274
275 return new MachineTime<>(seconds, fraction, POSIX);
276
277 }
278
279 /**
280 * <p>Creates a machine time duration on the UTC scale. </p>

Callers 15

ofDayUnitMethod · 0.95
ofHourUnitMethod · 0.95
ofMinuteUnitMethod · 0.95
ofMillisecondUnitMethod · 0.95
ofMicrosecondUnitMethod · 0.95
ofPosixUnitsMethod · 0.95
ofPosixUnitsNegativeMethod · 0.95
ofPosixSecondsDoubleMethod · 0.95
toStringPOSIXMethod · 0.95
toBigDecimalMethod · 0.95
getScaleMethod · 0.95

Calls

no outgoing calls

Tested by 15

ofDayUnitMethod · 0.76
ofHourUnitMethod · 0.76
ofMinuteUnitMethod · 0.76
ofMillisecondUnitMethod · 0.76
ofMicrosecondUnitMethod · 0.76
ofPosixUnitsMethod · 0.76
ofPosixUnitsNegativeMethod · 0.76
ofPosixSecondsDoubleMethod · 0.76
toStringPOSIXMethod · 0.76
toBigDecimalMethod · 0.76
getScaleMethod · 0.76