package clock
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- clock
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
val
currentDateTime: ZIO[Clock, DateTimeException, OffsetDateTime]
Get the current time, represented in the current timezone.
-
def
currentTime(unit: ⇒ TimeUnit): URIO[Clock, Long]
Returns the current time, relative to the Unix epoch.
- val instant: ZIO[Clock, Nothing, Instant]
- val localDateTime: ZIO[Clock, DateTimeException, LocalDateTime]
-
val
nanoTime: URIO[Clock, Long]
Returns the system nano time, which is not relative to any date.
-
def
sleep(duration: ⇒ Duration): URIO[Clock, Unit]
Sleeps for the specified duration.
Sleeps for the specified duration. This is always asynchronous.
- object Clock extends PlatformSpecific with Serializable