| Package | Description |
|---|---|
| com.helger.commons.datetime |
| Modifier and Type | Field and Description |
|---|---|
static OffsetDate |
OffsetDate.MAX
The maximum supported
OffsetDate, '+999999999-12-31-18:00'. |
static OffsetDate |
OffsetDate.MAX
The maximum supported
OffsetDate, '+999999999-12-31-18:00'. |
static OffsetDate |
OffsetDate.MIN
The minimum supported
OffsetDate, '-999999999-01-01+18:00'. |
static OffsetDate |
OffsetDate.MIN
The minimum supported
OffsetDate, '-999999999-01-01+18:00'. |
| Modifier and Type | Method and Description |
|---|---|
static OffsetDate |
PDTFactory.createOffsetDate(Date a) |
static OffsetDate |
PDTFactory.createOffsetDate(Date a) |
static OffsetDate |
PDTFactory.createOffsetDate(GregorianCalendar a) |
static OffsetDate |
PDTFactory.createOffsetDate(GregorianCalendar a) |
static OffsetDate |
PDTFactory.createOffsetDate(Instant a) |
static OffsetDate |
PDTFactory.createOffsetDate(Instant a) |
static OffsetDate |
PDTFactory.createOffsetDate(Instant a,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(Instant a,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(int nYear,
Month eMonth,
int nDayOfMonth) |
static OffsetDate |
PDTFactory.createOffsetDate(int nYear,
Month eMonth,
int nDayOfMonth) |
static OffsetDate |
PDTFactory.createOffsetDate(int nYear,
Month eMonth,
int nDayOfMonth,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(int nYear,
Month eMonth,
int nDayOfMonth,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDate a) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDate a) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDateTime a) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDateTime a) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDateTime a,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDateTime a,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDate a,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(LocalDate a,
ZoneOffset aOffset) |
static OffsetDate |
PDTFactory.createOffsetDate(long nMillis) |
static OffsetDate |
PDTFactory.createOffsetDate(long nMillis) |
static OffsetDate |
PDTFactory.createOffsetDate(Number a) |
static OffsetDate |
PDTFactory.createOffsetDate(Number a) |
static OffsetDate |
PDTFactory.createOffsetDate(OffsetDateTime a) |
static OffsetDate |
PDTFactory.createOffsetDate(OffsetDateTime a) |
static OffsetDate |
PDTFactory.createOffsetDate(Year a) |
static OffsetDate |
PDTFactory.createOffsetDate(Year a) |
static OffsetDate |
PDTFactory.createOffsetDate(YearMonth a) |
static OffsetDate |
PDTFactory.createOffsetDate(YearMonth a) |
static OffsetDate |
PDTFactory.createOffsetDate(ZonedDateTime a) |
static OffsetDate |
PDTFactory.createOffsetDate(ZonedDateTime a) |
static OffsetDate |
OffsetDate.from(TemporalAccessor temporal)
Obtains an instance of
OffsetDate from a temporal object. |
static OffsetDate |
OffsetDate.from(TemporalAccessor temporal)
Obtains an instance of
OffsetDate from a temporal object. |
static OffsetDate |
PDTFactory.getCurrentOffsetDate() |
static OffsetDate |
PDTFactory.getCurrentOffsetDate() |
static OffsetDate |
PDTFactory.getCurrentOffsetDateUTC() |
static OffsetDate |
PDTFactory.getCurrentOffsetDateUTC() |
static OffsetDate |
PDTFromString.getOffsetDateFromString(String sValue,
DateTimeFormatter aDF) |
static OffsetDate |
PDTFromString.getOffsetDateFromString(String sValue,
DateTimeFormatter aDF) |
static OffsetDate |
PDTFromString.getOffsetDateFromString(String sValue,
String sPattern) |
static OffsetDate |
PDTFromString.getOffsetDateFromString(String sValue,
String sPattern) |
static OffsetDate |
PDTWebDateHelper.getOffsetDateFromXSD(String sValue) |
static OffsetDate |
PDTWebDateHelper.getOffsetDateFromXSD(String sValue) |
OffsetDate |
OffsetDate.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date with the specified amount subtracted.
|
OffsetDate |
OffsetDate.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date with the specified amount subtracted.
|
OffsetDate |
OffsetDate.minus(TemporalAmount amountToSubtract)
Returns a copy of this date with the specified amount subtracted.
|
OffsetDate |
OffsetDate.minus(TemporalAmount amountToSubtract)
Returns a copy of this date with the specified amount subtracted.
|
OffsetDate |
OffsetDate.minusDays(long days)
Returns a copy of this
OffsetDate with the specified number of days
subtracted. |
OffsetDate |
OffsetDate.minusDays(long days)
Returns a copy of this
OffsetDate with the specified number of days
subtracted. |
OffsetDate |
OffsetDate.minusMonths(long months)
Returns a copy of this
OffsetDate with the specified number of
months subtracted. |
OffsetDate |
OffsetDate.minusMonths(long months)
Returns a copy of this
OffsetDate with the specified number of
months subtracted. |
OffsetDate |
OffsetDate.minusWeeks(long weeks)
Returns a copy of this
OffsetDate with the specified number of
weeks subtracted. |
OffsetDate |
OffsetDate.minusWeeks(long weeks)
Returns a copy of this
OffsetDate with the specified number of
weeks subtracted. |
OffsetDate |
OffsetDate.minusYears(long years)
Returns a copy of this
OffsetDate with the specified number of
years subtracted. |
OffsetDate |
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()
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(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.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(int year,
int month,
int dayOfMonth,
ZoneOffset offset)
Obtains an instance of
OffsetDate from a year, month, day and
offset. |
static OffsetDate |
OffsetDate.of(int year,
Month month,
int dayOfMonth,
ZoneOffset offset)
Obtains an instance of
OffsetDate from a year, month, day and
offset. |
static OffsetDate |
OffsetDate.of(int year,
Month 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.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.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)
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. |
static OffsetDate |
OffsetDate.parse(CharSequence text,
DateTimeFormatter formatter)
Obtains an instance of
OffsetDate from a text string using a
specific formatter. |
OffsetDate |
OffsetDate.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date with the specified amount added.
|
OffsetDate |
OffsetDate.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date with the specified amount added.
|
OffsetDate |
OffsetDate.plus(TemporalAmount amountToAdd)
Returns a copy of this date with the specified period added.
|
OffsetDate |
OffsetDate.plus(TemporalAmount amountToAdd)
Returns a copy of this date with the specified period added.
|
OffsetDate |
OffsetDate.plusDays(long days)
Returns a copy of this
OffsetDate with the specified number of days
added. |
OffsetDate |
OffsetDate.plusDays(long days)
Returns a copy of this
OffsetDate with the specified number of days
added. |
OffsetDate |
OffsetDate.plusMonths(long months)
Returns a copy of this
OffsetDate with the specified number of
months added. |
OffsetDate |
OffsetDate.plusMonths(long months)
Returns a copy of this
OffsetDate with the specified number of
months added. |
OffsetDate |
OffsetDate.plusWeeks(long weeks)
Returns a copy of this
OffsetDate with the specified number of
weeks added. |
OffsetDate |
OffsetDate.plusWeeks(long weeks)
Returns a copy of this
OffsetDate with the specified number of
weeks added. |
OffsetDate |
OffsetDate.plusYears(long years)
Returns a copy of this
OffsetDate with the specified number of
years added. |
OffsetDate |
OffsetDate.plusYears(long years)
Returns a copy of this
OffsetDate with the specified number of
years added. |
OffsetDate |
XMLOffsetDate.toOffsetDate() |
OffsetDate |
XMLOffsetDateTime.toOffsetDate() |
OffsetDate |
XMLOffsetDateTime.toOffsetDate() |
OffsetDate |
XMLOffsetDate.toOffsetDate() |
OffsetDate |
OffsetDate.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date.
|
OffsetDate |
OffsetDate.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date.
|
OffsetDate |
OffsetDate.with(TemporalField field,
long newValue)
Returns a copy of this date with the specified field set to a new value.
|
OffsetDate |
OffsetDate.with(TemporalField field,
long newValue)
Returns a copy of this date with the specified field set to a new value.
|
OffsetDate |
OffsetDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this
OffsetDate with the day-of-month altered. |
OffsetDate |
OffsetDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this
OffsetDate with the day-of-month altered. |
OffsetDate |
OffsetDate.withDayOfYear(int dayOfYear)
Returns a copy of this
OffsetDate with the day-of-year altered. |
OffsetDate |
OffsetDate.withDayOfYear(int dayOfYear)
Returns a copy of this
OffsetDate with the day-of-year altered. |
OffsetDate |
OffsetDate.withMonth(int month)
Returns a copy of this
OffsetDate with the month-of-year altered. |
OffsetDate |
OffsetDate.withMonth(int month)
Returns a copy of this
OffsetDate with the month-of-year altered. |
OffsetDate |
OffsetDate.withOffsetSameLocal(ZoneOffset offset)
Returns a copy of this
OffsetDate with the specified offset
ensuring that the result has the same local date. |
OffsetDate |
OffsetDate.withOffsetSameLocal(ZoneOffset offset)
Returns a copy of this
OffsetDate with the specified offset
ensuring that the result has the same local date. |
OffsetDate |
OffsetDate.withYear(int year)
Returns a copy of this
OffsetDate with the year altered. |
OffsetDate |
OffsetDate.withYear(int year)
Returns a copy of this
OffsetDate with the year altered. |
| Modifier and Type | Method and Description |
|---|---|
static PDTMask<OffsetDate> |
PDTMask.offsetDate(String sPattern) |
static PDTMask<OffsetDate> |
PDTMask.offsetDate(String sPattern) |
| Modifier and Type | Method and Description |
|---|---|
int |
OffsetDate.compareTo(OffsetDate o)
Compares this
OffsetDate to another date. |
int |
OffsetDate.compareTo(OffsetDate o)
Compares this
OffsetDate to another date. |
static Date |
PDTFactory.createDate(OffsetDate aOD) |
static Date |
PDTFactory.createDate(OffsetDate aOD) |
static LocalDateTime |
PDTFactory.createLocalDateTime(OffsetDate aDT) |
static LocalDateTime |
PDTFactory.createLocalDateTime(OffsetDate aDT) |
static OffsetDateTime |
PDTFactory.createOffsetDateTime(OffsetDate aOD) |
static OffsetDateTime |
PDTFactory.createOffsetDateTime(OffsetDate aOD) |
static XMLOffsetDateTime |
PDTFactory.createXMLOffsetDateTime(OffsetDate aOD) |
static XMLOffsetDateTime |
PDTFactory.createXMLOffsetDateTime(OffsetDate aOD) |
static ZonedDateTime |
PDTFactory.createZonedDateTime(OffsetDate aOD) |
static ZonedDateTime |
PDTFactory.createZonedDateTime(OffsetDate aOD) |
static String |
PDTToString.getAsString(OffsetDate aDate,
Locale aDisplayLocale) |
static String |
PDTToString.getAsString(OffsetDate aDate,
Locale aDisplayLocale) |
static String |
PDTWebDateHelper.getAsStringXSD(OffsetDate aOD) |
static String |
PDTWebDateHelper.getAsStringXSD(OffsetDate aOD) |
static long |
PDTFactory.getMillis(OffsetDate aOD) |
static long |
PDTFactory.getMillis(OffsetDate aOD) |
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.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.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. |
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. |
static XMLOffsetDate |
XMLOffsetDate.of(OffsetDate ofsDate) |
static XMLOffsetDate |
XMLOffsetDate.of(OffsetDate ofsDate) |
Copyright © 2014–2022 Philip Helger. All rights reserved.