MCPcopy Index your code
hub / github.com/apache/groovy / minus

Method minus

src/main/java/groovy/time/TimeDuration.java:97–102  ·  view source on GitHub ↗

Subtracts a fixed duration. @param rhs the duration to subtract @return the resulting duration

(final Duration rhs)

Source from the content-addressed store, hash-verified

95 * @return the resulting duration
96 */
97 @Override
98 public Duration minus(final Duration rhs) {
99 return new TimeDuration(this.getDays() - rhs.getDays(), this.getHours() - rhs.getHours(),
100 this.getMinutes() - rhs.getMinutes(), this.getSeconds() - rhs.getSeconds(),
101 this.getMillis() - rhs.getMillis());
102 }
103
104 /**
105 * Subtracts a datum-dependent duration.

Callers

nothing calls this directly

Calls 7

getMillisMethod · 0.80
getDaysMethod · 0.45
getHoursMethod · 0.45
getMinutesMethod · 0.45
getSecondsMethod · 0.45
getYearsMethod · 0.45
getMonthsMethod · 0.45

Tested by

no test coverage detected