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

Method toMilliseconds

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

Converts this duration to milliseconds assuming 24-hour days. @return the duration in milliseconds

()

Source from the content-addressed store, hash-verified

134 * @return the duration in milliseconds
135 */
136 @Override
137 public long toMilliseconds() {
138 return ((((((this.getDays() * 24L) + this.getHours()) * 60 + this.getMinutes()) * 60) + this.getSeconds()) * 1000) + this.getMillis();
139 }
140
141 /**
142 * Returns the date represented by this duration ago.

Calls 5

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

Tested by

no test coverage detected