zio.clock

package zio.clock

Type members

Classlikes

object Clock extends Serializable

Types

type Clock = Has[Service]

Value members

Concrete methods

Returns the current time, relative to the Unix epoch.

Returns the current time, relative to the Unix epoch.

def sleep(duration: => Duration): URIO[Clock, Unit]

Sleeps for the specified duration. This is always asynchronous.

Sleeps for the specified duration. This is always asynchronous.

Concrete fields

Get the current time, represented in the current timezone.

Get the current time, represented in the current timezone.

val instant: ZIO[Clock, Nothing, Instant]

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

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