Package

zio

clock

Permalink

package clock

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. clock
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Clock extends Serializable

    Permalink

Value Members

  1. object Clock extends Serializable

    Permalink
  2. final val clockService: ZIO[Clock, Nothing, Service[Any]]

    Permalink
  3. def currentDateTime: ZIO[Clock, Nothing, OffsetDateTime]

    Permalink

    Get the current time, represented in the current timezone.

  4. final def currentTime(unit: TimeUnit): ZIO[Clock, Nothing, Long]

    Permalink

    Returns the current time, relative to the Unix epoch.

  5. final val nanoTime: ZIO[Clock, Nothing, Long]

    Permalink

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

  6. final def sleep(duration: Duration): ZIO[Clock, Nothing, Unit]

    Permalink

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

Inherited from AnyRef

Inherited from Any

Ungrouped