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

    Permalink

Value Members

  1. object Clock extends PlatformSpecific with Serializable

    Permalink
  2. val currentDateTime: ZIO[Clock, DateTimeException, OffsetDateTime]

    Permalink

    Get the current time, represented in the current timezone.

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

    Permalink

    Returns the current time, relative to the Unix epoch.

  4. val instant: ZIO[Clock, Nothing, Instant]

    Permalink
  5. val nanoTime: URIO[Clock, Long]

    Permalink

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

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

    Permalink

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

Inherited from AnyRef

Inherited from Any

Ungrouped