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

Method minus

base/src/main/java/net/time4j/PlainTimestamp.java:1354–1361  ·  view source on GitHub ↗
(
        long amount,
        CalendarUnit unit
    )

Source from the content-addressed store, hash-verified

1352 * @since 4.19
1353 */
1354 public PlainTimestamp minus(
1355 long amount,
1356 CalendarUnit unit
1357 ) {
1358
1359 return this.plus(Math.negateExact(amount), unit);
1360
1361 }
1362
1363 /**
1364 * <p>Subtracts given amount in units from this timestamp and yields the result of subtraction. </p>

Callers 12

betweenTimestamps1Method · 0.95
betweenTimestamps3Method · 0.95
betweenTimestamps5Method · 0.95
betweenTimestamps8Method · 0.95
setToLastOnTimestampMethod · 0.95
nowTimestampMethod · 0.95
getOverlapTransition5Method · 0.95
toGeneralTimestampMethod · 0.95
atMethod · 0.95
inMethod · 0.95
createFromMethod · 0.95
minusPeriodMethod · 0.95

Calls 1

plusMethod · 0.95

Tested by 7

betweenTimestamps1Method · 0.76
betweenTimestamps3Method · 0.76
betweenTimestamps5Method · 0.76
betweenTimestamps8Method · 0.76
setToLastOnTimestampMethod · 0.76
nowTimestampMethod · 0.76
getOverlapTransition5Method · 0.76