Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Method and 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 |
Clock.systemDefaultZone()
Gets a clock that obtains the current date and time using the system millisecond
clock and the default time-zone.
|
Clock |
Clock.withSource(TimeSource timeSource)
Returns a copy of this clock with a different time-source.
|
Clock |
Clock.withZone(TimeZone zone)
Returns a copy of this clock with a different time-zone.
|
Modifier and Type | Method and Description |
---|---|
static LocalDate |
LocalDate.now(Clock clock)
Obtains the current date from the specified clock.
|
static ZonedDateTime |
ZonedDateTime.now(Clock clock)
Obtains the current date-time from the specified clock.
|
static OffsetDateTime |
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 LocalDateTime |
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 YearMonth |
YearMonth.now(Clock clock)
Obtains the current year-month 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.
|
static Year |
Year.now(Clock clock)
Obtains the current year from the specified clock.
|
Copyright © 2014. All rights reserved.