Packages

object TimeO

The TimeO object is used to represent and operate on date-time values. It contains an implicit class definition for TimeNum, which extends Instant with Numeric operations that can be used in VectorT. The java.time.Instant class stores nano-seconds since the UNIX Epoch using a long for seconds and int for nano-seconds (12 bytes or 96 bits). The java.time.ZonedDateTime class is used with it to handle various date-time formats.

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

Type Members

  1. implicit class TimeNum extends Numeric[TimeNum] with Ordered[TimeNum] with Serializable

    The TimeNum implicit class is used to represent and operate on date-time numbers.

    The TimeNum implicit class is used to represent and operate on date-time numbers. Internally, a date-time number is represented as Instant. ---------------------------------------------------------------------

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. val DEBUG: Boolean
  5. val DEFAULT_DATETIME_FORMAT: String

    Default date-time format month, day, year, hour (24), minute, second, nano-seconds zone

  6. val DEFAULT_TZ: String

    Define the default time zone to be Coordinated Universal Time (UTC).

    Define the default time zone to be Coordinated Universal Time (UTC). UTC is the successor to Greenwich Mean Time (GMT) that was developed at Royal Observator in Greenwich, UK (0° longitude). UTC does not observe Daylight Savings Time and serves as universal time across regions/time zones.

    See also

    en.wikipedia.org/wiki/Coordinated_Universal_Time

  7. val _0: TimeNum

    TimeNum (0) as a date-time corresponding to 01-01-1970 00:00:00 UTC, the UNIX Epoch

  8. val _1: TimeNum

    TimeNum (1) as a date-time corresponding to 01-02-1970 00:00:00 UTC FIX - why one day

  9. def abs(t: TimeNum): TimeNum

    Return the absolute value of that date-time number.

    Return the absolute value of that date-time number.

    t

    that date-time number

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. implicit def double2TimeNum(d: Double): TimeNum

    Implicit conversion from 'Double' to 'TimeNum'.

    Implicit conversion from 'Double' to 'TimeNum'.

    d

    the Double parameter to convert

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def max(s: TimeNum, t: TimeNum): TimeNum

    Return the maximum of two date-time number, 's' and 't'.

    Return the maximum of two date-time number, 's' and 't'.

    s

    the first date-time number to compare

    t

    the second date-time number to compare

  19. def min(s: TimeNum, t: TimeNum): TimeNum

    Return the minimum of two date-time numbers, 's' and 't'.

    Return the minimum of two date-time numbers, 's' and 't'.

    s

    the first date-time number to compare

    t

    the second date-time number to compare

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. implicit val num: TimeNum

    Implicit numeric value for establishing type

  24. implicit val ord: Ordering[TimeNum]

    Ordering for date-time values

  25. def setThreshold(thres: Double): Unit

    Set the threshold to value more suitable to the current application.

    Set the threshold to value more suitable to the current application.

    thres

    the new value for the threshold

  26. def signum(t: TimeNum): Int

    Return the signum (sgn) of a TimeNum.

    Return the signum (sgn) of a TimeNum.

    t

    the date-time to obtain the signum of

  27. def sqrt(t: TimeNum): TimeNum

    Return the square root of a TimeNum.

    Return the square root of a TimeNum.

    t

    the date-time to obtain the square root of

  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. object TimeNum extends Serializable

    The TimeNum companion object for the TimeNum class.

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped