Uses of Class
javax.time.calendar.OffsetDate
Packages that use OffsetDate
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of OffsetDate in javax.time.calendar
Fields in javax.time.calendar with type parameters of type OffsetDateModifier and TypeFieldDescriptionprivate static final CalendricalRule<OffsetDate>
OffsetDate.Rule.INSTANCE
Methods in javax.time.calendar that return OffsetDateModifier and TypeMethodDescriptionLocalDate.atOffset
(ZoneOffset offset) Returns an offset date formed from this time and the specified offset.protected OffsetDate
OffsetDate.Rule.derive
(Calendrical calendrical) OffsetDate.minus
(PeriodProvider periodProvider) Returns a copy of thisOffsetDate
with the specified date period subtracted.OffsetDate.minusDays
(long days) Returns a copy of thisOffsetDate
with the specified number of days subtracted.OffsetDate.minusMonths
(long months) Returns a copy of thisOffsetDate
with the specified period in months subtracted.OffsetDate.minusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in months subtracted.OffsetDate.minusWeeks
(long weeks) Returns a copy of thisOffsetDate
with the specified period in weeks subtracted.OffsetDate.minusYears
(long years) Returns a copy of thisOffsetDate
with the specified period in years subtracted.OffsetDate.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in years subtracted.static OffsetDate
OffsetDate.now()
Obtains the current date from the system clock in the default time-zone.static OffsetDate
Obtains the current date from the specified clock.static OffsetDate
OffsetDate.of
(int year, int monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDate
from a year, month and day.static OffsetDate
OffsetDate.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDate
from a year, month and day.static OffsetDate
OffsetDate.of
(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDate
from a date provider.Clock.offsetDate()
Gets the current offset date.static OffsetDate
OffsetDate.ofInstant
(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDate
from anInstantProvider
.static OffsetDate
Obtains an instance ofOffsetDate
from a text string such as2007-12-03+01:00
.static OffsetDate
OffsetDate.parse
(String text, DateTimeFormatter formatter) Obtains an instance ofOffsetDate
from a text string using a specific formatter.OffsetDate.plus
(PeriodProvider periodProvider) Returns a copy of thisOffsetDate
with the specified date period added.OffsetDate.plusDays
(long days) Returns a copy of thisOffsetDate
with the specified period in days added.OffsetDate.plusMonths
(long months) Returns a copy of thisOffsetDate
with the specified period in months added.OffsetDate.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in months added.OffsetDate.plusWeeks
(long weeks) Returns a copy of thisOffsetDate
with the specified period in weeks added.OffsetDate.plusYears
(long years) Returns a copy of thisOffsetDate
with the specified period in years added.OffsetDate.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in years added.OffsetDateTime.toOffsetDate()
Converts this date-time to anOffsetDate
.ZonedDateTime.toOffsetDate()
Converts thisZonedDateTime
to aOffsetDate
.OffsetDate.with
(DateAdjuster adjuster) Returns a copy of thisOffsetDate
with the date altered using the adjuster.private OffsetDate
OffsetDate.with
(LocalDate date, ZoneOffset offset) Returns a new date based on this one, returningthis
where possible.OffsetDate.with
(MonthOfYear monthOfYear) Returns a copy of thisOffsetDate
with the month-of-year altered.OffsetDate.with
(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the month-of-year altered.OffsetDate.withDate
(DateProvider dateProvider) Returns a copy of thisOffsetDate
with a different local date.OffsetDate.withDayOfMonth
(int dayOfMonth) Returns a copy of thisOffsetDate
with the day-of-month altered.OffsetDate.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the day-of-month altered.OffsetDate.withDayOfYear
(int dayOfYear) Returns a copy of thisOffsetDate
with the day-of-year altered.OffsetDate.withMonthOfYear
(int monthOfYear) Returns a copy of thisOffsetDate
with the month-of-year altered.OffsetDate.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the month-of-year altered.OffsetDate.withOffset
(ZoneOffset offset) Returns a copy of thisOffsetDate
with the specified offset.OffsetDate.withYear
(int year) Returns a copy of thisOffsetDate
with the year altered.OffsetDate.withYear
(int year, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the year altered.Methods in javax.time.calendar that return types with arguments of type OffsetDateModifier and TypeMethodDescriptionstatic CalendricalRule<OffsetDate>
OffsetDate.rule()
Gets the rule forOffsetDate
.Methods in javax.time.calendar with parameters of type OffsetDateModifier and TypeMethodDescriptionint
OffsetDate.compareTo
(OffsetDate other) Compares thisOffsetDate
to another date based on the UTC equivalent dates then local date.boolean
OffsetDate.equalInstant
(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDate
equals midnight at the start of the specified date.boolean
OffsetDate.isAfter
(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDate
is after midnight at the start of the specified date.boolean
OffsetDate.isBefore
(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDate
is before midnight at the start of the specified date.