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

Method minus

src/main/java/groovy/time/Duration.java:87–91  ·  view source on GitHub ↗

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

(final Duration rhs)

Source from the content-addressed store, hash-verified

85 * @return the resulting duration
86 */
87 public Duration minus(final Duration rhs) {
88 return new Duration(this.getDays() - rhs.getDays(), this.getHours() - rhs.getHours(),
89 this.getMinutes() - rhs.getMinutes(), this.getSeconds() - rhs.getSeconds(),
90 this.getMillis() - rhs.getMillis());
91 }
92
93 /**
94 * Subtracts a time 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