Packages

p

zio

clock

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. type Clock = Has[Service]

Value Members

  1. val currentDateTime: ZIO[Clock, DateTimeException, OffsetDateTime]

    Get the current time, represented in the current timezone.

  2. def currentTime(unit: ⇒ TimeUnit): URIO[Clock, Long]

    Returns the current time, relative to the Unix epoch.

  3. val nanoTime: URIO[Clock, Long]

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

  4. def sleep(duration: ⇒ Duration): URIO[Clock, Unit]

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

  5. object Clock extends PlatformSpecific with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped