Time.Length
- Source
- Length.scala
Def
By generic units.
By generic units.
Creates Length specified by one or more length units in any order.
Length(12.Hours, 45.Minutes, 999.Nanos, 5.Millis).tp
// Output
12 hours, 45 mins, 0.005000999 sec
- Source
- Length.scala
By nanoseconds
By nanoseconds
Creates Length by total nanoseconds.
Length.fromNanos(Long.OneTrillion + 999).tp
// Output
16 mins, 40.000000999 secs
- Source
- Length.scala
Inherited
Multiply
Multiply
Returns the product of this and given value
- Inherited from
- Numerical
- Source
- Numerical.scala
Plus
Plus
Returns the sum of this and given value
- Inherited from
- Numerical
- Source
- Numerical.scala
Minus
Minus
Returns difference of this and given value
- Inherited from
- Numerical
- Source
- Numerical.scala
Divide
Divide
Returns the quotient of this and given value
- Inherited from
- Numerical
- Source
- Numerical.scala
Less
Less
Returns true
if current value is less than given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Less or equal
Less or equal
Returns true
if current value is less or equal to given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Exclusive end range
Exclusive end range
Returns Range from current to given value exclusive
Note. Range uses base primitive natural ordering
- Inherited from
- Ordered
- Source
- Ordered.scala
Greater
Greater
Returns true
if current value is greater than given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Greater or equal
Greater or equal
Returns true
if current value is greater or equal to given, false
- otherwise
- Inherited from
- Ordered
- Source
- Ordered.scala
Absolute value
Absolute value
Returns non negative value
- Inherited from
- Numerical
- Source
- Numerical.scala
Day count
Day count
Total days (24.Hours) which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Hours remainder
Hours remainder
Hours remainder when rounded by whole day (24 hours)
Value range is from 0 to 23
- Inherited from
- Nanos
- Source
- Nanos.scala
Hours count
Hours count
Total hours which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Type to Info
Type to Info
Override this method to provide type standard Info implementation
- Inherited from
- Type
- Source
- Type.scala
Microseconds remainder
Microseconds remainder
Microseconds remainder when rounded by whole millisecond
Value range is from 0 to 999
- Inherited from
- Nanos
- Source
- Nanos.scala
Microseconds count
Microseconds count
Total microseconds which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Milliseconds remainder
Milliseconds remainder
Milliseconds remainder when rounded by whole second
Value range is from 0 to 999
- Inherited from
- Nanos
- Source
- Nanos.scala
Milliseconds count
Milliseconds count
Total milliseconds which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Minutes remainder
Minutes remainder
Minutes remainder when rounded by whole hour
Value range is from 0 to 59
- Inherited from
- Nanos
- Source
- Nanos.scala
Minutes count
Minutes count
Total minutes which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala
Nanoseconds remainder
Nanoseconds remainder
Nanoseconds remainder when rounded by whole microsecond
Value range is from 0 to 999
- Inherited from
- Nanos
- Source
- Nanos.scala
Seconds remainder
Seconds remainder
Seconds remainder when rounded by whole minute
Value range is from 0 to 59
- Inherited from
- Nanos
- Source
- Nanos.scala
Seconds count
Seconds count
Total seconds which fit in this
time unit
- Inherited from
- Nanos
- Source
- Nanos.scala