Instance Constructors
-
new
Duration
()
Abstract Value Members
-
def
*
(factor: Double): Duration
-
-
-
def
/
(other: Duration): Double
-
def
/
(factor: Double): Duration
-
def
<
(other: Duration): Boolean
-
def
<=
(other: Duration): Boolean
-
def
>
(other: Duration): Boolean
-
def
>=
(other: Duration): Boolean
-
def
finite_?
: Boolean
-
def
length
: Long
-
def
printHMS
: String
-
def
toDays
: Long
-
def
toHours
: Long
-
def
toMicros
: Long
-
def
toMillis
: Long
-
def
toMinutes
: Long
-
def
toNanos
: Long
-
def
toSeconds
: Long
-
def
toUnit
(unit: TimeUnit): Double
-
-
def
unit
: TimeUnit
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
-
def
div
(other: Duration): Double
-
def
div
(factor: Double): Duration
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
gt
(other: Duration): Boolean
-
def
gteq
(other: Duration): Boolean
-
def
hashCode
(): Int
-
def
isFinite
(): Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
lt
(other: Duration): Boolean
-
def
lteq
(other: Duration): Boolean
-
-
-
-
def
mul
(factor: Double): Duration
-
def
ne
(arg0: AnyRef): Boolean
-
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from Serializable
Inherited from Serializable
Inherited from AnyRef
Inherited from Any
Utility for working with java.util.concurrent.TimeUnit durations.
Examples of usage from Java:
Examples of usage from Scala:
Implicits are also provided for Int, Long and Double. Example usage:
Extractors, parsing and arithmetic are also included: