Time.Length

opaque type Length

Time.Length is an opaque Long value, holding total nanoseconds

Time.Length constructor methods are attached to primitives:

  1.Day.tp       // Prints: 1 day
  33.Millis.tp   // Prints: 0.033 sec
  10.Hours.tp    // Prints: 10 hours
  99999.Nanos.tp // Prints: 0.000099999 sec

Longest Time.Length possible is:

 Long.max.Nanos.tp  // Prints: 106751 days 23 hours 47 mins 16.854775807 secs
Source
Length.scala

Def

@scala.annotation.targetName("multiply")
inline def *(inline v: Byte | Short | Int | Long): Time.Length

Multiply

Multiply

Returns the product of this and given value

Inherited from
_methods
Source
Calculable.scala
@scala.annotation.targetName("plus")
inline def +(inline v: A): Time.Length

Plus

Plus

Returns the sum of this and given value

Inherited from
_methods
Source
Calculable.scala
@scala.annotation.targetName("minus")
inline def -(inline v: A): Time.Length

Minus

Minus

Returns difference of this and given value

Inherited from
_methods
Source
Calculable.scala
@scala.annotation.targetName("divide")
inline def /(inline v: Byte | Short | Int | Long): Time.Length

Divide

Divide

Returns the quotient of this and given value

Inherited from
_methods
Source
Calculable.scala
@scala.annotation.targetName("less")
inline def <(inline v: A): Boolean

Less

Less

Returns true if current value is less than given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@scala.annotation.targetName("lessOrEqual")
inline def <=(inline v: A): Boolean

Less or equal

Less or equal

Returns true if current value is less or equal to given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@scala.annotation.targetName("range")
inline def <>(inline to: Long.G.<>[Time.Length]

Range

Range

Returns Range from current to given value

Note. Range uses base primitive natural ordering

Inherited from
zMethodsBase
Source
Ordered.scala
@scala.annotation.targetName("rangeX")
inline def <>>(inline to: Long.G.<>[Time.Length]

Exclusive end range

Exclusive end range

Returns Range from current to given value exclusive

Note. Range uses base primitive natural ordering

Inherited from
zMethodsBase
Source
Ordered.scala
@scala.annotation.targetName("greater")
inline def >(inline v: A): Boolean

Greater

Greater

Returns true if current value is greater than given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@scala.annotation.targetName("greaterOrEqual")
inline def >=(inline v: A): Boolean

Greater or equal

Greater or equal

Returns true if current value is greater or equal to given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
inline def atLeast(v: Time.Length

Max

Max

Returns maximum of current or given value

Inherited from
zMethodsBase
Source
Ordered.scala
inline def atMost(v: Time.Length

Min

Min

Returns minimun of current or given value

Inherited from
zMethodsBase
Source
Ordered.scala
inline def daysTotal: Long

Day count

Day count

Total days (24.Hours) which fit in this time unit

Inherited from
_methods
Source
Nanos.scala
inline def hours: Long

Hours remainder

Hours remainder

Hours remainder when rounded by whole day (24 hours)

Value range is from 0 to 23

Inherited from
_methods
Source
Nanos.scala
inline def hoursTotal: Long

Hours count

Hours count

Total hours which fit in this time unit

Inherited from
_methods
Source
Nanos.scala
inline def micros: Long

Microseconds remainder

Microseconds remainder

Microseconds remainder when rounded by whole millisecond

Value range is from 0 to 999

Inherited from
_methods
Source
Nanos.scala
inline def microsTotal: Long

Microseconds count

Microseconds count

Total microseconds which fit in this time unit

Inherited from
_methods
Source
Nanos.scala
inline def millis: Long

Milliseconds remainder

Milliseconds remainder

Milliseconds remainder when rounded by whole second

Value range is from 0 to 999

Inherited from
_methods
Source
Nanos.scala
@scala.annotation.targetName("millisTotal")
def millisTotal: Long

Milliseconds count

Milliseconds count

Total milliseconds which fit in this time unit

Inherited from
_methods
Source
Nanos.scala
inline def minutes: Long

Minutes remainder

Minutes remainder

Minutes remainder when rounded by whole hour

Value range is from 0 to 59

Inherited from
_methods
Source
Nanos.scala
inline def minutesTotal: Long

Minutes count

Minutes count

Total minutes which fit in this time unit

Inherited from
_methods
Source
Nanos.scala
inline def nanos: Long

Nanoseconds remainder

Nanoseconds remainder

Nanoseconds remainder when rounded by whole microsecond

Value range is from 0 to 999

Inherited from
_methods
Source
Nanos.scala
inline def nanosTotal: Long
inline def real: Long

Real value

Real value

Returns real value standing behind the opaque type

Inherited from
_methods
Source
__.scala
@scala.annotation.targetName("roundTo")
Inherited from
_methods
Source
Nanos.scala
inline def seconds: Long

Seconds remainder

Seconds remainder

Seconds remainder when rounded by whole minute

Value range is from 0 to 59

Inherited from
_methods
Source
Nanos.scala
inline def secondsTotal: Long

Seconds count

Seconds count

Total seconds which fit in this time unit

Inherited from
_methods
Source
Nanos.scala
def toBrief: String
inline def weeksTotal: Long
Inherited from
_methods
Source
Nanos.scala

Implicit

implicit inline def implicitRequest(inline q: \/): Time.Length