TimeSpan.Item<U>| Modifier and Type | Method and Description |
|---|---|
int |
getFraction()
Yields the normalized nanosecond fraction of this duration.
|
long |
getSeconds()
Yields the normalized seconds of this duration.
|
addTo, contains, getPartialAmount, getTotalLength, isEmpty, isNegative, isPositive, subtractFromlong getSeconds()
Yields the normalized seconds of this duration.
The normalization happens in case of a negative duration such that any fraction part
falls into the range 0-999999999. In this case, following expression is NOT true:
Math.abs(getSeconds()) == getPartialAmount(TimeUnit.SECONDS)
getFraction()int getFraction()
Yields the normalized nanosecond fraction of this duration.
0-999999999getSeconds()Copyright © 2014–2017. All rights reserved.