Uses of Class
com.helger.commons.datetime.OffsetDate
Packages that use OffsetDate
-
Uses of OffsetDate in com.helger.commons.datetime
Fields in com.helger.commons.datetime 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 com.helger.commons.datetime that return OffsetDateModifier and TypeMethodDescriptionstatic OffsetDatePDTFactory.createOffsetDate(int nYear, Month eMonth, int nDayOfMonth) static OffsetDatePDTFactory.createOffsetDate(int nYear, Month eMonth, int nDayOfMonth, ZoneOffset aOffset) static OffsetDatePDTFactory.createOffsetDate(long nMillis) static OffsetDatePDTFactory.createOffsetDate(Number a) static OffsetDatePDTFactory.createOffsetDate(Instant a) static OffsetDatePDTFactory.createOffsetDate(Instant a, ZoneOffset aOffset) static OffsetDatePDTFactory.createOffsetDate(LocalDate a) static OffsetDatePDTFactory.createOffsetDate(LocalDate a, ZoneOffset aOffset) static OffsetDatePDTFactory.createOffsetDate(LocalDateTime a) static OffsetDatePDTFactory.createOffsetDate(LocalDateTime a, ZoneOffset aOffset) static OffsetDatePDTFactory.createOffsetDate(OffsetDateTime a) static OffsetDatePDTFactory.createOffsetDate(Year a) static OffsetDatePDTFactory.createOffsetDate(YearMonth a) static OffsetDatePDTFactory.createOffsetDate(ZonedDateTime a) static OffsetDatePDTFactory.createOffsetDate(Date a) static OffsetDatePDTFactory.createOffsetDate(GregorianCalendar a) static OffsetDateOffsetDate.from(TemporalAccessor temporal) Obtains an instance ofOffsetDatefrom a temporal object.static OffsetDatePDTFactory.getCurrentOffsetDate()static OffsetDatePDTFactory.getCurrentOffsetDateUTC()static OffsetDatePDTFromString.getOffsetDateFromString(String sValue, String sPattern) static OffsetDatePDTFromString.getOffsetDateFromString(String sValue, DateTimeFormatter aDF) static OffsetDatePDTWebDateHelper.getOffsetDateFromXSD(String sValue) 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(int year, Month 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.XMLOffsetDate.toOffsetDate()XMLOffsetDateTime.toOffsetDate()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 com.helger.commons.datetime that return types with arguments of type OffsetDateMethods in com.helger.commons.datetime with parameters of type OffsetDateModifier and TypeMethodDescriptionintOffsetDate.compareTo(OffsetDate o) Compares thisOffsetDateto another date.static DatePDTFactory.createDate(OffsetDate aOD) static LocalDateTimePDTFactory.createLocalDateTime(OffsetDate aDT) static OffsetDateTimePDTFactory.createOffsetDateTime(OffsetDate aOD) static XMLOffsetDateTimePDTFactory.createXMLOffsetDateTime(OffsetDate aOD) static ZonedDateTimePDTFactory.createZonedDateTime(OffsetDate aOD) static StringPDTToString.getAsString(OffsetDate aDate, Locale aDisplayLocale) static StringPDTWebDateHelper.getAsStringXSD(OffsetDate aOD) static longPDTFactory.getMillis(OffsetDate aOD) 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.static XMLOffsetDateXMLOffsetDate.of(OffsetDate ofsDate)