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 instant: ZIO[Clock, Nothing, Instant]
  4. val localDateTime: ZIO[Clock, DateTimeException, LocalDateTime]
  5. val nanoTime: URIO[Clock, Long]

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

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

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

  7. object Clock extends PlatformSpecific with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped