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
Subclasses with type arguments of type OffsetDate in javax.time.calendarModifier and TypeClassDescription(package private) static final classRule implementation.Classes in javax.time.calendar that implement interfaces with type arguments of type OffsetDateModifier and TypeClassDescriptionfinal classA date with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03+01:00.Fields in javax.time.calendar with type parameters of type OffsetDateModifier and TypeFieldDescriptionprivate static final CalendricalRule<OffsetDate> OffsetDate.Rule.INSTANCEMethods 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 OffsetDateOffsetDate.Rule.derive(Calendrical calendrical) OffsetDate.minus(PeriodProvider periodProvider) Returns a copy of thisOffsetDatewith the specified date period subtracted.OffsetDate.minusDays(long days) Returns a copy of thisOffsetDatewith the specified number of days subtracted.OffsetDate.minusMonths(long months) Returns a copy of thisOffsetDatewith the specified period in months subtracted.OffsetDate.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in months subtracted.OffsetDate.minusWeeks(long weeks) Returns a copy of thisOffsetDatewith the specified period in weeks subtracted.OffsetDate.minusYears(long years) Returns a copy of thisOffsetDatewith the specified period in years subtracted.OffsetDate.minusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in years subtracted.static OffsetDateOffsetDate.now()Obtains the current date from the system clock in the default time-zone.static OffsetDateObtains the current date from the specified clock.static OffsetDateOffsetDate.of(int year, int monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a year, month and day.static OffsetDateOffsetDate.of(int year, MonthOfYear monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a year, month and day.static OffsetDateOffsetDate.of(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a date provider.Clock.offsetDate()Gets the current offset date.static OffsetDateOffsetDate.ofInstant(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDatefrom anInstantProvider.static OffsetDateObtains an instance ofOffsetDatefrom a text string such as2007-12-03+01:00.static OffsetDateOffsetDate.parse(String text, DateTimeFormatter formatter) Obtains an instance ofOffsetDatefrom a text string using a specific formatter.OffsetDate.plus(PeriodProvider periodProvider) Returns a copy of thisOffsetDatewith the specified date period added.OffsetDate.plusDays(long days) Returns a copy of thisOffsetDatewith the specified period in days added.OffsetDate.plusMonths(long months) Returns a copy of thisOffsetDatewith the specified period in months added.OffsetDate.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in months added.OffsetDate.plusWeeks(long weeks) Returns a copy of thisOffsetDatewith the specified period in weeks added.OffsetDate.plusYears(long years) Returns a copy of thisOffsetDatewith the specified period in years added.OffsetDate.plusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in years added.OffsetDateTime.toOffsetDate()Converts this date-time to anOffsetDate.ZonedDateTime.toOffsetDate()Converts thisZonedDateTimeto aOffsetDate.OffsetDate.with(DateAdjuster adjuster) Returns a copy of thisOffsetDatewith the date altered using the adjuster.private OffsetDateOffsetDate.with(LocalDate date, ZoneOffset offset) Returns a new date based on this one, returningthiswhere possible.OffsetDate.with(MonthOfYear monthOfYear) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDate.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDate.withDate(DateProvider dateProvider) Returns a copy of thisOffsetDatewith a different local date.OffsetDate.withDayOfMonth(int dayOfMonth) Returns a copy of thisOffsetDatewith the day-of-month altered.OffsetDate.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the day-of-month altered.OffsetDate.withDayOfYear(int dayOfYear) Returns a copy of thisOffsetDatewith the day-of-year altered.OffsetDate.withMonthOfYear(int monthOfYear) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDate.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDate.withOffset(ZoneOffset offset) Returns a copy of thisOffsetDatewith the specified offset.OffsetDate.withYear(int year) Returns a copy of thisOffsetDatewith the year altered.OffsetDate.withYear(int year, DateResolver dateResolver) Returns a copy of thisOffsetDatewith 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 TypeMethodDescriptionintOffsetDate.compareTo(OffsetDate other) Compares thisOffsetDateto another date based on the UTC equivalent dates then local date.booleanOffsetDate.equalInstant(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDateequals midnight at the start of the specified date.booleanOffsetDate.isAfter(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDateis after midnight at the start of the specified date.booleanOffsetDate.isBefore(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDateis before midnight at the start of the specified date.