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.
- Alphabetic
- By Inheritance
- TimeO
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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 asInstant
. ---------------------------------------------------------------------
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DEBUG: Boolean
- val DEFAULT_DATETIME_FORMAT: String
Default date-time format month, day, year, hour (24), minute, second, nano-seconds zone
- 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
- val _0: TimeNum
TimeNum (0) as a date-time corresponding to 01-01-1970 00:00:00 UTC, the UNIX Epoch
- val _1: TimeNum
TimeNum (1) as a date-time corresponding to 01-02-1970 00:00:00 UTC FIX - why one day
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit def double2TimeNum(d: Double): TimeNum
Implicit conversion from 'Double' to 'TimeNum'.
Implicit conversion from 'Double' to 'TimeNum'.
- d
the Double parameter to convert
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit val num: TimeNum
Implicit numeric value for establishing type
- implicit val ord: Ordering[TimeNum]
Ordering for date-time values
- 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
- 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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object TimeNum extends Serializable
The
TimeNum
companion object for the TimeNum class.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated