final class Hours extends AnyVal with Util.Time.Like.Unit[Util.Time.Hours] with Util.Time.Like.Core.A.Millis

Hours is a unit representing Duration of specified number of hours.

Note: It does not implement Duration directly, but is implicitly converted to it.

Ordering
  1. Alphabetic
Inherited
  1. Hours
  2. Util.Time.Like.Core.A.Millis
  3. Util.Time.Like.Unit
  4. Any.Datum.Long.Number
  5. Any.Datum.Long.Number._use
  6. Any.Datum.Z.Number.Use
  7. Any.Datum.Long.Number._convert
  8. Any.Datum.Z.Number.Convert
  9. Any.Datum.Long.Number._compare
  10. Any.Datum.Z.Number.Compare
  11. Any.Datum.Long.Computable
  12. Any.Datum.Z.Computable
  13. Any.Datum.Long.Ordered
  14. Any.Datum.Z.Ordered
  15. Any.Datum.Long
  16. Custom.Number.Like
  17. Any.Datum
  18. Any.Wrap
  19. Util.Time.Like.Core
  20. scala.AnyVal
  21. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Constant

  1. val real: Long
    Definition Classes
    HoursUnit_convert_compare_Trait_Trait

Method

  1. def abs: Hours

    Absolute value

    Absolute value

    Returns absolute value of this

    Definition Classes
    _Trait → Computable
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. def duration: Util.Time.Duration

    Length conversion.

    Length conversion.

    Converts this custom duration unit to general Duration.

    Definition Classes
    Unit
  4. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  5. def make(v: Long): Hours
    Attributes
    protected
    Definition Classes
    _Trait_Trait
  6. def max(v: Hours): Hours

    Maximum value

    Maximum value

    Returns maximum of this and provided value

    Definition Classes
    _Trait → Ordered
  7. def min(v: Hours): Hours

    Minimum value

    Minimum value

    Returns minimum of this and provided value

    Definition Classes
    _Trait → Ordered
  8. def preciseDuration: Util.Time.PreciseDuration

    Precise conversion.

    Precise conversion.

    Converts this custom duration unit to general PreciseDuration.

    Definition Classes
    Unit
  9. def realNumber: Long
    Attributes
    protected
    Definition Classes
    _TraitLike
  10. def round(scale: Int, r: Custom.Rounding = \/): Hours

    Round value

    Round value

    Negative scale specifies number of rounding digits before the period

    Positive scale specifies number of rounding digits after the period

    Note. Positive scale does not make sense if this is integral value

    By default the rounding is done "half up'

    Definition Classes
    _use → Use
  11. def setup: Hours.type
    Attributes
    protected
    Definition Classes
    HoursUnit_Trait_Trait_Trait_Trait
  12. def signum: Int

    Sign function

    Sign function

    Returns -1 if this < 0

    Returns 0 if this == 0

    Returns 1 if this > 0 *

    Definition Classes
    _use → Use
  13. def subHours: Hours

    Hours remainder.

    Hours remainder.

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

    Value range is from 0 to 23

    Definition Classes
    _Trait
  14. 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
  15. 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
  16. 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
  17. def toBrief: String
    Definition Classes
    Unit
  18. def toByte: Byte

    Convert to Byte

    Convert to Byte

    Returns the value of this as Byte

    Definition Classes
    _convert → Convert
  19. def toDouble: Double

    Convert to Double

    Convert to Double

    Returns the value of this as Double

    Definition Classes
    _convert → Convert
  20. def toFloat: Float
    Definition Classes
    _convert → Convert
  21. def toInt: Int

    Convert to Int

    Convert to Int

    Returns the value of this as Int

    Definition Classes
    _convert → Convert
  22. def toLong: Long

    Convert to Long

    Convert to Long

    Returns the value of this as Long

    Definition Classes
    _convert → Convert
  23. def toNumber: Long

    Convert to Number

    Convert to Number

    Returns the value of this as java.lang.Number

    Definition Classes
    _convert → Convert
  24. def toShort: Short

    Convert to Short

    Convert to Short

    Returns the value of this as Short

    Definition Classes
    _convert → Convert
  25. def toString(): String
    Definition Classes
    Unit → Any
  26. def totalDays: Util.Time.Days

    Day count.

    Day count.

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

    Definition Classes
    Millis_Trait
  27. def totalHours: Hours

    Hours count.

    Hours count.

    Total hours which fit in this time unit.

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

    Milliseconds count.

    Milliseconds count.

    Total milliseconds which fit in this time unit.

    Definition Classes
    HoursMillis_Trait
  29. def totalMinutes: Util.Time.Minutes

    Minutes count.

    Minutes count.

    Total minutes which fit in this time unit.

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

    Seconds count.

    Seconds count.

    Total seconds which fit in this time unit.

    Definition Classes
    Millis_Trait

Operator

  1. def unary_-: Hours

    Negate

    Negate

    Returns a new value, which is negated this

    Definition Classes
    _use → Use
  2. def !=(v: Double): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  3. def !=(v: Float): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  4. def !=(v: Long): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  5. def !=(v: Int): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  6. def !=(v: Short): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  7. def !=(v: Byte): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  8. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  9. final def ##(): Int
    Definition Classes
    Any
  10. def %(v: Long): Hours

    Remainder

    Remainder

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

    Definition Classes
    _use
  11. def %(v: Int): Hours

    Remainder

    Remainder

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

    Definition Classes
    _use
  12. def %(v: Hours): Hours

    Remainder

    Remainder

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

    Definition Classes
    _use → Use
  13. def %@(v: Double): Util.Percent
    Definition Classes
    _use
  14. def %@(v: Hours): Util.Percent

    Percent At

    Percent At

    Returns percentage of this compared to v

    Definition Classes
    _Trait → Computable
  15. def *(v: Hours): Hours

    Multiply by

    Multiply by

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

    Definition Classes
    _use → Use
  16. def *(v: Long): Hours

    Multiply by

    Multiply by

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

    Definition Classes
    _Trait
  17. def *(v: Int): Hours

    Multiply by

    Multiply by

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

    Definition Classes
    _Trait
  18. def +(v: Long): Hours

    Add value

    Add value

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

    Definition Classes
    _use
  19. def +(v: Int): Hours

    Add value

    Add value

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

    Definition Classes
    _use
  20. def +(p: Percent): Hours

    Add percent

    Add percent

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

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

    Add value

    Add value

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

    Definition Classes
    _Trait → Computable
  22. def -(v: Long): Hours

    Subtract value

    Subtract value

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

    Definition Classes
    _use
  23. def -(v: Int): Hours

    Subtract value

    Subtract value

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

    Definition Classes
    _use
  24. def -(p: Percent): Hours

    Subtract percent

    Subtract percent

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

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

    Subtract value

    Subtract value

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

    Definition Classes
    _Trait → Computable
  26. def /(v: Hours): Hours

    Divide by

    Divide by

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

    Definition Classes
    _use → Use
  27. def /(v: Long): Hours

    Divide by

    Divide by

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

    Definition Classes
    _Trait
  28. def /(v: Int): Hours

    Divide by

    Divide by

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

    Definition Classes
    _Trait
  29. def <(v: Double): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  30. def <(v: Float): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  31. def <(v: Long): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  32. def <(v: Int): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  33. def <(v: Short): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  34. def <(v: Byte): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  35. def <(v: Hours): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _Trait → Ordered
  36. def <=(v: Double): 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
    _compare → Compare
  37. def <=(v: Float): 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
    _compare → Compare
  38. def <=(v: Long): 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
    _compare → Compare
  39. def <=(v: Int): 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
    _compare → Compare
  40. def <=(v: Short): 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
    _compare → Compare
  41. def <=(v: Byte): 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
    _compare → Compare
  42. def <=(v: Hours): 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
  43. def ==(v: Double): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  44. def ==(v: Float): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  45. def ==(v: Long): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  46. def ==(v: Int): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  47. def ==(v: Short): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  48. def ==(v: Byte): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  49. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  50. def >(v: Double): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  51. def >(v: Float): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  52. def >(v: Long): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  53. def >(v: Int): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  54. def >(v: Short): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  55. def >(v: Byte): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  56. def >(v: Hours): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _Trait → Ordered
  57. def >=(v: Double): 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
    _compare → Compare
  58. def >=(v: Float): 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
    _compare → Compare
  59. def >=(v: Long): 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
    _compare → Compare
  60. def >=(v: Int): 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
    _compare → Compare
  61. def >=(v: Short): 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
    _compare → Compare
  62. def >=(v: Byte): 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
    _compare → Compare
  63. def >=(v: Hours): 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