Uses of Class
org.threeten.extra.OffsetDate
Packages that use OffsetDate
-
Uses of OffsetDate in org.threeten.extra
Fields in org.threeten.extra declared as OffsetDateModifier and TypeFieldDescriptionstatic final OffsetDateOffsetDate.MAXThe maximum supportedOffsetDate, '+999999999-12-31-18:00'.static final OffsetDateOffsetDate.MINThe minimum supportedOffsetDate, '-999999999-01-01+18:00'.Methods in org.threeten.extra that return OffsetDateModifier and TypeMethodDescriptionstatic OffsetDateOffsetDate.from(TemporalAccessor temporal) Obtains an instance ofOffsetDatefrom a temporal object.OffsetDate.minus(long amountToSubtract, TemporalUnit unit) Returns a copy of this date with the specified amount subtracted.OffsetDate.minus(TemporalAmount amountToSubtract) Returns a copy of this date with the specified amount 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 number of months subtracted.OffsetDate.minusWeeks(long weeks) Returns a copy of thisOffsetDatewith the specified number of weeks subtracted.OffsetDate.minusYears(long years) Returns a copy of thisOffsetDatewith the specified number of 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 OffsetDateObtains the current date from the system clock in the specified time-zone.static OffsetDateOffsetDate.of(int year, int month, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a year, month, day and offset.static OffsetDateOffsetDate.of(LocalDate date, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a local date and an offset.static OffsetDateObtains an instance ofOffsetDatefrom anInstantand zone ID.static OffsetDateOffsetDate.parse(CharSequence text) Obtains an instance ofOffsetDatefrom a text string such as2007-12-03+01:00.static OffsetDateOffsetDate.parse(CharSequence text, DateTimeFormatter formatter) Obtains an instance ofOffsetDatefrom a text string using a specific formatter.OffsetDate.plus(long amountToAdd, TemporalUnit unit) Returns a copy of this date with the specified amount added.OffsetDate.plus(TemporalAmount amountToAdd) Returns a copy of this date with the specified period added.OffsetDate.plusDays(long days) Returns a copy of thisOffsetDatewith the specified number of days added.OffsetDate.plusMonths(long months) Returns a copy of thisOffsetDatewith the specified number of months added.OffsetDate.plusWeeks(long weeks) Returns a copy of thisOffsetDatewith the specified number of weeks added.OffsetDate.plusYears(long years) Returns a copy of thisOffsetDatewith the specified number of years added.OffsetDate.with(TemporalAdjuster adjuster) Returns an adjusted copy of this date.OffsetDate.with(TemporalField field, long newValue) Returns a copy of this date with the specified field set to a new value.OffsetDate.withDayOfMonth(int dayOfMonth) 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.withMonth(int month) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDate.withOffsetSameLocal(ZoneOffset offset) Returns a copy of thisOffsetDatewith the specified offset ensuring that the result has the same local date.OffsetDate.withYear(int year) Returns a copy of thisOffsetDatewith the year altered.Methods in org.threeten.extra with parameters of type OffsetDateModifier and TypeMethodDescriptionintOffsetDate.compareTo(OffsetDate other) Compares thisOffsetDateto another 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.booleanOffsetDate.isEqual(OffsetDate other) Checks if the instant of midnight at the start of thisOffsetDateequals midnight at the start of the specified date.