ClockJava

zio.Clock.ClockJava
final case class ClockJava(clock: Clock) extends Clock

An implementation of the Clock service backed by a java.time.Clock.

Attributes

Source
Clock.scala
Graph
Supertypes
trait Product
trait Equals
trait Clock
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

trait UnsafeAPI extends Serializable

Attributes

Inherited from:
Clock
Source
Clock.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def currentDateTime(implicit trace: Trace): UIO[OffsetDateTime]

Attributes

Source
Clock.scala
def currentTime(unit: => TimeUnit)(implicit trace: Trace): UIO[Long]

Attributes

Source
Clock.scala
def currentTime(unit: => ChronoUnit)(implicit trace: Trace, d: DummyImplicit): UIO[Long]

Attributes

Source
Clock.scala
def instant(implicit trace: Trace): UIO[Instant]

Attributes

Source
Clock.scala
def javaClock(implicit trace: Trace): UIO[Clock]

Attributes

Source
Clock.scala
def localDateTime(implicit trace: Trace): UIO[LocalDateTime]

Attributes

Source
Clock.scala
def nanoTime(implicit trace: Trace): UIO[Long]

Attributes

Source
Clock.scala
def scheduler(implicit trace: Trace): UIO[Scheduler]

Attributes

Source
Clock.scala
def sleep(duration: => Duration)(implicit trace: Trace): UIO[Unit]

Attributes

Source
Clock.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val unsafe: UnsafeAPI

Attributes

Source
Clock.scala