Packages

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]) @IntrinsicCandidate() @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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def instant(implicit trace: Trace): UIO[Instant]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def javaClock(implicit trace: Trace): UIO[java.time.Clock]

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

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

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

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

    Returns the scheduler used for scheduling effects.

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

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

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

Deprecated Value Members

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

    (Since version 9)

Inherited from Serializable

Inherited from ClockPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped