case class Time(millis: Long) extends Product with Serializable
This is a simple class that represents an absolute instant of time. Internally, it represents time as the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. This is the same format as what is returned by System.currentTimeMillis.
- Source
- Time.scala
- Alphabetic
- By Inheritance
- Time
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Time(millis: Long)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(that: Duration): Time
- def -(that: Duration): Time
- def -(that: Time): Duration
- def <(that: Time): Boolean
- def <=(that: Time): Boolean
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: Time): Boolean
- def >=(that: Time): Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def floor(that: Duration, zeroTime: Time): Time
- def floor(that: Duration): Time
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def greater(that: Time): Boolean
- def greaterEq(that: Time): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMultipleOf(that: Duration): Boolean
- def less(that: Time): Boolean
- def lessEq(that: Time): Boolean
- def max(that: Time): Time
- def milliseconds: Long
- def min(that: Time): Time
- def minus(that: Duration): Time
- def minus(that: Time): Duration
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def plus(that: Duration): Time
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def to(that: Time, interval: Duration): Seq[Time]
-
def
toString(): String
- Definition Classes
- Time → AnyRef → Any
- def until(that: Time, interval: Duration): Seq[Time]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated