Clock

zio.Clock
See theClock companion object
trait Clock extends Serializable

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ClockJava
object ClockLive.type
Self type

Members list

Concise view

Type members

Classlikes

trait UnsafeAPI

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Abstract 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]

Concrete methods