Uses of Class
javax.time.calendar.Clock
Packages that use Clock
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of Clock in javax.time.calendar
Subclasses of Clock in javax.time.calendarModifier and TypeClassDescriptionprivate static final class
Implementation of a clock based on a time-source.Methods in javax.time.calendar that return ClockModifier and TypeMethodDescriptionstatic Clock
Clock.clock
(TimeSource timeSource, TimeZone timeZone) Gets a clock that obtains the current date and time using the specified time-source and time-zone.static Clock
Clock.clockDefaultZone
(TimeSource timeSource) Gets a clock that obtains the current date and time using the specified time-source and default time-zone.static Clock
Gets a clock that obtains the current date and time using the system millisecond clock and the specified time-zone.static Clock
Clock.systemDefaultZone()
Gets a clock that obtains the current date and time using the system millisecond clock and the default time-zone.Clock.TimeSourceClock.withSource
(TimeSource timeSource) Returns a copy of this clock with a different time-source.Clock.withSource
(TimeSource timeSource) Returns a copy of this clock with a different time-source.Returns a copy of this clock with a different time-zone.Returns a copy of this clock with a different time-zone.Methods in javax.time.calendar with parameters of type ClockModifier and TypeMethodDescriptionstatic LocalDate
Obtains the current date from the specified clock.static LocalDateTime
Obtains the current date-time from the specified clock.static LocalTime
Obtains the current time from the specified clock.static MonthDay
Obtains the current month-day from the specified clock.static OffsetDate
Obtains the current date from the specified clock.static OffsetDateTime
Obtains the current date-time from the specified clock.static OffsetTime
Obtains the current time from the specified clock.static Year
Obtains the current year from the specified clock.static YearMonth
Obtains the current year-month from the specified clock.static ZonedDateTime
Obtains the current date-time from the specified clock.