Packages

object Time

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Time
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(str: String): Time

    The argument is composed of a sequence of values each followed by a time unit: "d" for days, "h" for hours, "m" for minutes, "s" for seconds and "ms" for milliseconds.

    The argument is composed of a sequence of values each followed by a time unit: "d" for days, "h" for hours, "m" for minutes, "s" for seconds and "ms" for milliseconds. The general format is: "xdxhxmxsxms", where "x" denotes a number (a sequence of digits). Each number/unit part is optional. The unit identifiers are case sensitive (lower case is mandatory). No whitespace is allowed.

    str

    the string to be converted

    returns

    a new time converted from the string

    Annotations
    @throws(classOf[IllegalArgumentException])
    Examples:
    1. Time("3d25m") //3 days and 25 minutes

    2. ,
    3. Time("5m12s125ms") //5 minutes, 12 seconds and 125 milliseconds

    Exceptions thrown

    IllegalArgumentException if the string cannot be converted to Time

  5. def apply(ms: Long): Time
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final val d: Long(86400000L)
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final val h: Long(3600000L)
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final val m: Long(60000L)
  16. final val ms: Long(1L)
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final val ns: Double(1.0E-6)
  21. final val s: Long(1000L)
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unapply(t: Time): Option[Long]
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final val μs: Double(0.001)

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped