Uses of Class
javax.time.calendar.Clock
-
Packages that use Clock Package Description javax.time.calendar 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.calendar Modifier and Type Class Description private static classClock.TimeSourceClockImplementation of a clock based on a time-source.Methods in javax.time.calendar that return Clock Modifier and Type Method Description static 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 ClockClock. system(TimeZone zone)Gets 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.ClockClock.TimeSourceClock. withSource(TimeSource timeSource)Returns a copy of this clock with a different time-source.ClockClock. withSource(TimeSource timeSource)Returns a copy of this clock with a different time-source.ClockClock.TimeSourceClock. withZone(TimeZone zone)Returns a copy of this clock with a different time-zone.ClockClock. withZone(TimeZone zone)Returns a copy of this clock with a different time-zone.Methods in javax.time.calendar with parameters of type Clock Modifier and Type Method Description static LocalDateLocalDate. now(Clock clock)Obtains the current date from the specified clock.static LocalDateTimeLocalDateTime. now(Clock clock)Obtains the current date-time from the specified clock.static LocalTimeLocalTime. now(Clock clock)Obtains the current time from the specified clock.static MonthDayMonthDay. now(Clock clock)Obtains the current month-day from the specified clock.static OffsetDateOffsetDate. now(Clock clock)Obtains the current date from the specified clock.static OffsetDateTimeOffsetDateTime. now(Clock clock)Obtains the current date-time from the specified clock.static OffsetTimeOffsetTime. now(Clock clock)Obtains the current time from the specified clock.static YearYear. now(Clock clock)Obtains the current year from the specified clock.static YearMonthYearMonth. now(Clock clock)Obtains the current year-month from the specified clock.static ZonedDateTimeZonedDateTime. now(Clock clock)Obtains the current date-time from the specified clock.
-