object Clock extends ClockPlatformSpecific with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Clock
- Serializable
- Serializable
- ClockPlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
final
case class
ClockJava(clock: java.time.Clock) extends Clock with Product with Serializable
An implementation of the
Clock
service backed by ajava.time.Clock
.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
currentDateTime(implicit trace: Trace): UIO[OffsetDateTime]
Get the current time, represented in the current timezone.
- def currentTime(unit: ⇒ ChronoUnit)(implicit trace: Trace, d: DummyImplicit): UIO[Long]
-
def
currentTime(unit: ⇒ TimeUnit)(implicit trace: Trace): UIO[Long]
Returns the current time, relative to the Unix epoch.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def instant(implicit trace: Trace): UIO[Instant]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
javaClock(implicit trace: Trace): UIO[java.time.Clock]
Constructs a
java.time.Clock
backed by theClock
service. - def localDateTime(implicit trace: Trace): UIO[LocalDateTime]
-
def
nanoTime(implicit trace: Trace): UIO[Long]
Returns the system nano time, which is not relative to any date.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
scheduler(implicit trace: Trace): UIO[Scheduler]
Returns the scheduler used for scheduling effects.
-
def
sleep(duration: ⇒ zio.Duration)(implicit trace: Trace): UIO[Unit]
Sleeps for the specified duration.
Sleeps for the specified duration. This is always asynchronous.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tag: Tag[Clock]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object ClockLive extends Clock