| Package | Description |
|---|---|
| org.threeten.bp |
The main API for dates, times, instants, and durations.
|
| org.threeten.bp.jdk8 |
Simulates JDK 1.8 features on JDK 1.7.
|
| org.threeten.bp.temporal |
Access to date and time using fields and units, plus additional value type classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DayOfWeek
A day-of-week, such as 'Tuesday'.
|
class |
Instant
An instantaneous point on the time-line.
|
class |
LocalDate
A date without a time-zone in the ISO-8601 calendar system,
such as
2007-12-03. |
class |
LocalDateTime
A date-time without a time-zone in the ISO-8601 calendar system,
such as
2007-12-03T10:15:30. |
class |
LocalTime
A time without time-zone in the ISO-8601 calendar system,
such as
10:15:30. |
class |
Month
A month-of-year, such as 'July'.
|
class |
MonthDay
A month-day in the ISO-8601 calendar system, such as
--12-03. |
class |
OffsetDate
A date with an offset from UTC/Greenwich in the ISO-8601 calendar system,
such as
2007-12-03+01:00. |
class |
OffsetDateTime
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system,
such as
2007-12-03T10:15:30+01:00. |
class |
OffsetTime
A time with an offset from UTC/Greenwich in the ISO-8601 calendar system,
such as
10:15:30+01:00. |
class |
Year
A year in the ISO-8601 calendar system, such as
2007. |
class |
YearMonth
A year-month in the ISO-8601 calendar system, such as
2007-12. |
class |
ZoneOffset
A time-zone offset from Greenwich/UTC, such as
+02:00. |
| Modifier and Type | Method and Description |
|---|---|
ZonedDateTime |
ZonedDateTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date-time.
|
YearMonth |
YearMonth.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this year-month.
|
Year |
Year.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this year.
|
OffsetTime |
OffsetTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this time.
|
OffsetDateTime |
OffsetDateTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date-time.
|
OffsetDate |
OffsetDate.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date.
|
LocalTime |
LocalTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this time.
|
LocalDateTime |
LocalDateTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date-time.
|
LocalDate |
LocalDate.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date.
|
Instant |
Instant.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this instant.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultInterfaceChronoLocalDate<C extends Chrono<C>>
A temporary class providing implementations that will become default interface
methods once integrated into JDK 8.
|
class |
DefaultInterfaceChronoLocalDateTime<C extends Chrono<C>>
A temporary class providing implementations that will become default interface
methods once integrated into JDK 8.
|
class |
DefaultInterfaceEra<C extends Chrono<C>>
A temporary class providing implementations that will become default interface
methods once integrated into JDK 8.
|
| Modifier and Type | Method and Description |
|---|---|
Temporal |
DefaultInterfaceTemporal.with(TemporalAdjuster adjuster) |
ChronoZonedDateTime<C> |
DefaultInterfaceChronoZonedDateTime.with(TemporalAdjuster adjuster) |
ChronoLocalDateTime<C> |
DefaultInterfaceChronoLocalDateTime.with(TemporalAdjuster adjuster) |
ChronoLocalDate<C> |
DefaultInterfaceChronoLocalDate.with(TemporalAdjuster adjuster) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ChronoLocalDate<C extends Chrono<C>>
A date without time-of-day or time-zone in an arbitrary chronology, intended
for advanced globalization use cases.
|
interface |
ChronoLocalDateTime<C extends Chrono<C>>
A date-time without a time-zone in an arbitrary chronology, intended
for advanced globalization use cases.
|
interface |
Era<C extends Chrono<C>>
An era of the time-line.
|
| Modifier and Type | Method and Description |
|---|---|
static TemporalAdjuster |
TemporalAdjusters.dayOfWeekInMonth(int ordinal,
DayOfWeek dayOfWeek)
Returns the day-of-week in month adjuster, which returns a new date
in the same month with the ordinal day-of-week.
|
static TemporalAdjuster |
TemporalAdjusters.firstDayOfMonth()
Returns the "first day of month" adjuster, which returns a new date set to
the first day of the current month.
|
static TemporalAdjuster |
TemporalAdjusters.firstDayOfNextMonth()
Returns the "first day of next month" adjuster, which returns a new date set to
the first day of the next month.
|
static TemporalAdjuster |
TemporalAdjusters.firstDayOfNextYear()
Returns the "first day of next year" adjuster, which returns a new date set to
the first day of the next year.
|
static TemporalAdjuster |
TemporalAdjusters.firstDayOfYear()
Returns the "first day of year" adjuster, which returns a new date set to
the first day of the current year.
|
static TemporalAdjuster |
TemporalAdjusters.firstInMonth(DayOfWeek dayOfWeek)
Returns the first in month adjuster, which returns a new date
in the same month with the first matching day-of-week.
|
static TemporalAdjuster |
TemporalAdjusters.lastDayOfMonth()
Returns the "last day of month" adjuster, which returns a new date set to
the last day of the current month.
|
static TemporalAdjuster |
TemporalAdjusters.lastDayOfYear()
Returns the "last day of year" adjuster, which returns a new date set to
the last day of the current year.
|
static TemporalAdjuster |
TemporalAdjusters.lastInMonth(DayOfWeek dayOfWeek)
Returns the last in month adjuster, which returns a new date
in the same month with the last matching day-of-week.
|
static TemporalAdjuster |
TemporalAdjusters.next(DayOfWeek dayOfWeek)
Returns the next day-of-week adjuster, which adjusts the date to the
first occurrence of the specified day-of-week after the date being adjusted.
|
static TemporalAdjuster |
TemporalAdjusters.nextOrSame(DayOfWeek dayOfWeek)
Returns the next-or-same day-of-week adjuster, which adjusts the date to the
first occurrence of the specified day-of-week after the date being adjusted
unless it is already on that day in which case the same object is returned.
|
static TemporalAdjuster |
TemporalAdjusters.previous(DayOfWeek dayOfWeek)
Returns the previous day-of-week adjuster, which adjusts the date to the
first occurrence of the specified day-of-week before the date being adjusted.
|
static TemporalAdjuster |
TemporalAdjusters.previousOrSame(DayOfWeek dayOfWeek)
Returns the previous-or-same day-of-week adjuster, which adjusts the date to the
first occurrence of the specified day-of-week before the date being adjusted
unless it is already on that day in which case the same object is returned.
|
| Modifier and Type | Method and Description |
|---|---|
Temporal |
Temporal.with(TemporalAdjuster adjuster)
Returns an adjusted object of the same type as this object with the adjustment made.
|
ChronoZonedDateTime<C> |
ChronoZonedDateTime.with(TemporalAdjuster adjuster) |
ChronoLocalDateTime<C> |
ChronoLocalDateTime.with(TemporalAdjuster adjuster) |
ChronoLocalDate<C> |
ChronoLocalDate.with(TemporalAdjuster adjuster) |
Copyright © 2007-2013 ThreeTen.org. All Rights Reserved.