Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReadyTalk/avian
/ convert
Method
convert
classpath/java/util/concurrent/TimeUnit.java:50–53 ·
view source on GitHub ↗
(long d, TimeUnit u)
Source
from the content-addressed store, hash-verified
48
}
49
50
@Override
51
public
long convert(long d, TimeUnit u) {
52
return
u.toNanos(d);
53
}
54
55
@Override
56
int
excessNanos(long d, long m) {
Callers
7
toNanoConversionTest
Method · 0.80
toMicroConversionTest
Method · 0.80
toMilliConversionTest
Method · 0.80
toSecondConversionTest
Method · 0.80
toMinuteConversionTest
Method · 0.80
toHourConversionTest
Method · 0.80
toDayConversionTest
Method · 0.80
Calls
7
toNanos
Method · 0.80
toMicros
Method · 0.80
toMillis
Method · 0.80
toSeconds
Method · 0.80
toMinutes
Method · 0.80
toHours
Method · 0.80
toDays
Method · 0.80
Tested by
7
toNanoConversionTest
Method · 0.64
toMicroConversionTest
Method · 0.64
toMilliConversionTest
Method · 0.64
toSecondConversionTest
Method · 0.64
toMinuteConversionTest
Method · 0.64
toHourConversionTest
Method · 0.64
toDayConversionTest
Method · 0.64