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

Method getHours

src/main/java/groovy/time/TimeCategory.java:246–248  ·  view source on GitHub ↗

Returns an hour-based duration for the supplied number of hours. @param self the number of hours @return the corresponding duration

(final Integer self)

Source from the content-addressed store, hash-verified

244 * @return the corresponding duration
245 */
246 public static TimeDuration getHours(final Integer self) {
247 return new TimeDuration(0, self, 0, 0, 0);
248 }
249
250 /**
251 * Alias for {@link #getHours(Integer)}.

Callers 15

getHourMethod · 0.95
minusMethod · 0.45
plusMethod · 0.45
minusMethod · 0.45
getAgoMethod · 0.45
getNowMethod · 0.45
plusMethod · 0.45
minusMethod · 0.45
getAgoMethod · 0.45
getNowMethod · 0.45
plusMethod · 0.45
minusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected