ClockJava

final case class ClockJava(clock: Clock) extends Clock

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

trait Product
trait Equals
trait Clock
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

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product