object Clock extends ClockPlatformSpecific with Serializable

Linear Supertypes
Serializable, ClockPlatformSpecific, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Clock
  2. Serializable
  3. ClockPlatformSpecific
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class ClockJava(clock: java.time.Clock) extends Clock with Product with Serializable

    An implementation of the Clock service backed by a java.time.Clock.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def currentDateTime(implicit trace: Trace): UIO[OffsetDateTime]

    Get the current time, represented in the current timezone.

  7. def currentTime(unit: => ChronoUnit)(implicit trace: Trace, d: DummyImplicit): UIO[Long]
  8. def currentTime(unit: => TimeUnit)(implicit trace: Trace): UIO[Long]

    Returns the current time, relative to the Unix epoch.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def instant(implicit trace: Trace): UIO[Instant]
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def javaClock(implicit trace: Trace): UIO[java.time.Clock]

    Constructs a java.time.Clock backed by the Clock service.

  17. def localDateTime(implicit trace: Trace): UIO[LocalDateTime]
  18. def nanoTime(implicit trace: Trace): UIO[Long]

    Returns the system nano time, which is not relative to any date.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def scheduler(implicit trace: Trace): UIO[Scheduler]

    Returns the scheduler used for scheduling effects.

  23. def sleep(duration: => zio.Duration)(implicit trace: Trace): UIO[Unit]

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val tag: Tag[Clock]
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. object ClockLive extends Clock

Inherited from Serializable

Inherited from ClockPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped