final class Duration extends AnyVal with Util.Time.Like.Length[Util.Time.Duration] with Util.Time.Like.Core.A.Millis with Any.Datum.Long.Computable[Util.Time.Duration]

Duration represents general time duration without specified start or end.

Ordering
  1. Alphabetic
Inherited
  1. Duration
  2. Any.Datum.Long.Computable
  3. Any.Datum.Z.Computable
  4. Any.Datum.Long.Ordered
  5. Any.Datum.Z.Ordered
  6. Any.Datum.Long
  7. Custom.Number.Like
  8. Any.Datum
  9. Any.Wrap
  10. Util.Time.Like.Core.A.Millis
  11. Util.Time.Like.Length
  12. Util.Time.Like.Core
  13. scala.AnyVal
  14. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Constant

  1. val real: Long
    Definition Classes
    Duration_Trait_Trait

Method

  1. def abs: Duration

    Absolute value

    Absolute value

    Returns absolute value of this

    Definition Classes
    _Trait → Computable
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  4. def make(v: Long): Duration
    Attributes
    protected
    Definition Classes
    _Trait_Trait
  5. def max(v: Duration): Duration

    Maximum value

    Maximum value

    Returns maximum of this and provided value

    Definition Classes
    _Trait → Ordered
  6. def min(v: Duration): Duration

    Minimum value

    Minimum value

    Returns minimum of this and provided value

    Definition Classes
    _Trait → Ordered
  7. def realNumber: Long
    Attributes
    protected
    Definition Classes
    _TraitLike
  8. def round(l: Duration, r: Custom.Rounding = \/): Duration
    Definition Classes
    DurationLength
  9. def setup: Duration.type
    Attributes
    protected
    Definition Classes
    Duration_Trait_Trait_Trait
  10. def subHours: Util.Time.Hours

    Hours remainder.

    Hours remainder.

    Hours remainder when rounded by whole day (24 hours).

    Value range is from 0 to 23

    Definition Classes
    _Trait
  11. def subMillis: Util.Time.Millis

    Milliseconds remainder.

    Milliseconds remainder.

    Milliseconds remainder when rounded by whole second.

    Value range is from 0 to 999

    Definition Classes
    _Trait
  12. def subMinutes: Util.Time.Minutes

    Minutes remainder.

    Minutes remainder.

    Minutes remainder when rounded by whole hour.

    Value range is from 0 to 59

    Definition Classes
    _Trait
  13. def subSeconds: Util.Time.Seconds

    Seconds remainder.

    Seconds remainder.

    Seconds remainder when rounded by whole minute.

    Value range is from 0 to 59

    Definition Classes
    _Trait
  14. def toBrief: String

    Short description.

    Short description.

    Converts Length to short String description.

    Duration.make(10.Hours, 15.Seconds, 45.Minutes).brief(1.Minute).lp
    // Output
    10h, 45m
    Definition Classes
    Length
  15. def toPreciseDuration: Util.Time.PreciseDuration

    Precise Length

    Precise Length

    Converts this Duration to PreciseDuration.

    Definition Classes
    Duration
  16. def toString(): String
    Definition Classes
    Duration → Any
  17. def totalDays: Util.Time.Days

    Day count.

    Day count.

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

    Definition Classes
    Millis_Trait
  18. def totalHours: Util.Time.Hours

    Hours count.

    Hours count.

    Total hours which fit in this time unit.

    Definition Classes
    Millis_Trait
  19. def totalMillis: Util.Time.Millis

    Milliseconds count.

    Milliseconds count.

    Total milliseconds which fit in this time unit.

    Definition Classes
    DurationMillis_Trait
  20. def totalMinutes: Util.Time.Minutes

    Minutes count.

    Minutes count.

    Total minutes which fit in this time unit.

    Definition Classes
    Millis_Trait
  21. def totalSeconds: Util.Time.Seconds

    Seconds count.

    Seconds count.

    Total seconds which fit in this time unit.

    Definition Classes
    Millis_Trait

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def %@(v: Duration): Util.Percent

    Percent At

    Percent At

    Returns percentage of this compared to v

    Definition Classes
    _Trait → Computable
  4. def *(v: Long): Duration

    Multiply by

    Multiply by

    Returns a new value, which is this value multiplied by v

    Definition Classes
    _Trait
  5. def *(v: Int): Duration

    Multiply by

    Multiply by

    Returns a new value, which is this value multiplied by v

    Definition Classes
    _Trait
  6. def +(p: Percent): Duration

    Add percent

    Add percent

    Returns a new value, which is this with added percent of this

    Definition Classes
    _Trait → Computable
  7. def +(v: Duration, V: \/ = \/): Duration

    Add value

    Add value

    Returns a new value, which is an addition of this and v

    Definition Classes
    _Trait → Computable
  8. def -(p: Percent): Duration

    Subtract percent

    Subtract percent

    Returns a new value, which is this with subtracted percent of this

    Definition Classes
    _Trait → Computable
  9. def -(v: Duration, V: \/ = \/): Duration

    Subtract value

    Subtract value

    Returns a new value, which is a subtraction of v from this

    Definition Classes
    _Trait → Computable
  10. def /(v: Long): Duration

    Divide by

    Divide by

    Returns a new value, which is this value divided by v

    Definition Classes
    _Trait
  11. def /(v: Int): Duration

    Divide by

    Divide by

    Returns a new value, which is this value divided by v

    Definition Classes
    _Trait
  12. def <(v: Duration): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _Trait → Ordered
  13. def <=(v: Duration): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered
  14. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  15. def >(v: Duration): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _Trait → Ordered
  16. def >=(v: Duration): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered