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

Method minus

base/src/main/java/net/time4j/Moment.java:1479–1486  ·  view source on GitHub ↗
(
        long amount,
        SI unit
    )

Source from the content-addressed store, hash-verified

1477 * @throws ArithmeticException in case of overflow
1478 */
1479 public Moment minus(
1480 long amount,
1481 SI unit
1482 ) {
1483
1484 return this.plus(Math.negateExact(amount), unit);
1485
1486 }
1487
1488 /**
1489 * <p>Subtracts given real time from this timestamp on the UTC time scale. </p>

Callers 11

nowMomentMethod · 0.95
toStringOutputMethod · 0.95
minusPosixHoursBerlinMethod · 0.95
startAtSunsetInMeccaMethod · 0.95
fromLocalEventMethod · 0.95
randomMethod · 0.95
applyMethod · 0.45
handleSameTimesMethod · 0.45
handleLaterMethod · 0.45
stepBackwardsMethod · 0.45
fromMethod · 0.45

Calls 3

plusMethod · 0.95
getSecondsMethod · 0.45
getFractionMethod · 0.45

Tested by 4

nowMomentMethod · 0.76
toStringOutputMethod · 0.76
minusPosixHoursBerlinMethod · 0.76
startAtSunsetInMeccaMethod · 0.76