codes.reactive.scalatime

Instant

object Instant

Factory object for obtaining instances of Instant.

Instant is an instantaneous point on the time-line.

Source
Instant.scala
Example:
  1. import codes.reactive.scalatime._
    
    // Obtain the current instant of a Clock
    val clockInstant = Instant(Clock())
    
    // Obtain the current instant
    val currentInstant = Instant()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Instant
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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(clock: scalatime.Clock): scalatime.Instant

    Queries the provided Clock to obtain the current instant *

  5. def apply(): scalatime.Instant

    Obtains the current instant from the UTC system clock.

    Obtains the current instant from the UTC system clock. *

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def from(from: scalatime.TemporalAccessor): Try[scalatime.Instant]

    Tries to query a Temporal to obtain an Instant.

  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def milli(epochMilli: Long): Try[scalatime.Instant]

    Tries to obtain an Instant from specified milliseconds from the epoch of 1970-01-01T00:00:00Z.

  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def parse(text: String): Try[scalatime.Instant]

    Tries to obtain an Instant from text formatted according to format.DateTimeFormatter.Iso.Instant, such as 2014-07-15T14:47:00.00Z.

  20. def second(epochSecond: Long, nanoAdjustment: Long): Try[scalatime.Instant]

    Tries to obtain an Instant from specified seconds from the epoch of 1970-01-01T00:00:00Z, and nanosecond fraction.

  21. def second(epochSecond: Long): Try[scalatime.Instant]

    Tries to obtain an Instant from specified seconds from the epoch of 1970-01-01T00:00:00Z.

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

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped