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

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
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def currentDateTime(implicit trace: Trace): UIO[OffsetDateTime]
def currentTime(unit: => TimeUnit)(implicit trace: Trace): UIO[Long]
def currentTime(unit: => ChronoUnit)(implicit trace: Trace, d: DummyImplicit): UIO[Long]
def instant(implicit trace: Trace): UIO[Instant]
def javaClock(implicit trace: Trace): UIO[Clock]
def localDateTime(implicit trace: Trace): UIO[LocalDateTime]
def nanoTime(implicit trace: Trace): UIO[Long]
def scheduler(implicit trace: Trace): UIO[Scheduler]
def sleep(duration: => Duration)(implicit trace: Trace): UIO[Unit]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val unsafe: UnsafeAPI