Object/Class

de.h2b.scala.lib.phys

Time

Related Docs: class Time | package phys

Permalink

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. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(str: String): Time

    Permalink

    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("5m12s125ms") //5 minutes, 12 seconds and 125 milliseconds

    2. ,
    3. Time("3d25m") //3 days and 25 minutes

    Exceptions thrown

    IllegalArgumentException if the string cannot be converted to Time

  5. def apply(ms: Long): Time

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final val d: Long

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. final val h: Long

    Permalink
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final val m: Long

    Permalink
  16. final val ms: Long(1L)

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final val ns: Double

    Permalink
  21. final val s: Long

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def unapply(t: Time): Option[Long]

    Permalink
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final val μs: Double

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped