Uses of Class
org.threeten.extra.OffsetDate

Packages that use OffsetDate
Package
Description
Value types and utilities that extend java.time.*.
  • Uses of OffsetDate in org.threeten.extra

    Fields in org.threeten.extra declared as OffsetDate
    Modifier and Type
    Field
    Description
    static final OffsetDate
    OffsetDate.MAX
    The maximum supported OffsetDate, '+999999999-12-31-18:00'.
    static final OffsetDate
    OffsetDate.MIN
    The minimum supported OffsetDate, '-999999999-01-01+18:00'.
    Methods in org.threeten.extra that return OffsetDate
    Modifier and Type
    Method
    Description
    static OffsetDate
    OffsetDate.from(TemporalAccessor temporal)
    Obtains an instance of OffsetDate from 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 this OffsetDate with the specified number of days subtracted.
    OffsetDate.minusMonths(long months)
    Returns a copy of this OffsetDate with the specified number of months subtracted.
    OffsetDate.minusWeeks(long weeks)
    Returns a copy of this OffsetDate with the specified number of weeks subtracted.
    OffsetDate.minusYears(long years)
    Returns a copy of this OffsetDate with the specified number of years subtracted.
    static OffsetDate
    OffsetDate.now()
    Obtains the current date from the system clock in the default time-zone.
    static OffsetDate
    OffsetDate.now(Clock clock)
    Obtains the current date from the specified clock.
    static OffsetDate
    OffsetDate.now(ZoneId zone)
    Obtains the current date from the system clock in the specified time-zone.
    static OffsetDate
    OffsetDate.of(int year, int month, int dayOfMonth, ZoneOffset offset)
    Obtains an instance of OffsetDate from a year, month, day and offset.
    static OffsetDate
    OffsetDate.of(LocalDate date, ZoneOffset offset)
    Obtains an instance of OffsetDate from a local date and an offset.
    static OffsetDate
    OffsetDate.ofInstant(Instant instant, ZoneId zone)
    Obtains an instance of OffsetDate from an Instant and zone ID.
    static OffsetDate
    OffsetDate.parse(CharSequence text)
    Obtains an instance of OffsetDate from a text string such as 2007-12-03+01:00.
    static OffsetDate
    OffsetDate.parse(CharSequence text, DateTimeFormatter formatter)
    Obtains an instance of OffsetDate from 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 this OffsetDate with the specified number of days added.
    OffsetDate.plusMonths(long months)
    Returns a copy of this OffsetDate with the specified number of months added.
    OffsetDate.plusWeeks(long weeks)
    Returns a copy of this OffsetDate with the specified number of weeks added.
    OffsetDate.plusYears(long years)
    Returns a copy of this OffsetDate with 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 this OffsetDate with the day-of-month altered.
    OffsetDate.withDayOfYear(int dayOfYear)
    Returns a copy of this OffsetDate with the day-of-year altered.
    OffsetDate.withMonth(int month)
    Returns a copy of this OffsetDate with the month-of-year altered.
    OffsetDate.withOffsetSameLocal(ZoneOffset offset)
    Returns a copy of this OffsetDate with the specified offset ensuring that the result has the same local date.
    OffsetDate.withYear(int year)
    Returns a copy of this OffsetDate with the year altered.
    Methods in org.threeten.extra with parameters of type OffsetDate
    Modifier and Type
    Method
    Description
    int
    OffsetDate.compareTo(OffsetDate other)
    Compares this OffsetDate to another date.
    boolean
    OffsetDate.isAfter(OffsetDate other)
    Checks if the instant of midnight at the start of this OffsetDate 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 this OffsetDate is before midnight at the start of the specified date.
    boolean
    OffsetDate.isEqual(OffsetDate other)
    Checks if the instant of midnight at the start of this OffsetDate equals midnight at the start of the specified date.