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.calendar
    Modifier and Type
    Class
    Description
    private static final class 
    Implementation of a clock based on a time-source.
    Methods in javax.time.calendar that return Clock
    Modifier and Type
    Method
    Description
    static 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
    Clock.system(TimeZone zone)
    Gets a clock that obtains the current date and time using the system millisecond clock and the specified time-zone.
    static Clock
    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.
    Clock.TimeSourceClock.withZone(TimeZone zone)
    Returns a copy of this clock with a different time-zone.
    Clock.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 LocalDate
    LocalDate.now(Clock clock)
    Obtains the current date from the specified clock.
    LocalDateTime.now(Clock clock)
    Obtains the current date-time from the specified clock.
    static LocalTime
    LocalTime.now(Clock clock)
    Obtains the current time from the specified clock.
    static MonthDay
    MonthDay.now(Clock clock)
    Obtains the current month-day from the specified clock.
    static OffsetDate
    OffsetDate.now(Clock clock)
    Obtains the current date from the specified clock.
    OffsetDateTime.now(Clock clock)
    Obtains the current date-time from the specified clock.
    static OffsetTime
    OffsetTime.now(Clock clock)
    Obtains the current time from the specified clock.
    static Year
    Year.now(Clock clock)
    Obtains the current year from the specified clock.
    static YearMonth
    YearMonth.now(Clock clock)
    Obtains the current year-month from the specified clock.
    ZonedDateTime.now(Clock clock)
    Obtains the current date-time from the specified clock.