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 classImplementation of a clock based on a time-source.Methods in javax.time.calendar that return ClockModifier and TypeMethodDescriptionstatic ClockClock.clock(TimeSource timeSource, TimeZone timeZone) Gets a clock that obtains the current date and time using the specified time-source and time-zone.static ClockClock.clockDefaultZone(TimeSource timeSource) Gets a clock that obtains the current date and time using the specified time-source and default time-zone.static ClockGets a clock that obtains the current date and time using the system millisecond clock and the specified time-zone.static ClockClock.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 LocalDateObtains the current date from the specified clock.static LocalDateTimeObtains the current date-time from the specified clock.static LocalTimeObtains the current time from the specified clock.static MonthDayObtains the current month-day from the specified clock.static OffsetDateObtains the current date from the specified clock.static OffsetDateTimeObtains the current date-time from the specified clock.static OffsetTimeObtains the current time from the specified clock.static YearObtains the current year from the specified clock.static YearMonthObtains the current year-month from the specified clock.static ZonedDateTimeObtains the current date-time from the specified clock.