| Package | Description |
|---|---|
| com.helger.commons.datetime |
| Modifier and Type | Field and Description |
|---|---|
static XMLOffsetTime |
XMLOffsetTime.MAX
The maximum supported
XMLOffsetTime, '23:59:59.999999999-18:00'. |
static XMLOffsetTime |
XMLOffsetTime.MAX
The maximum supported
XMLOffsetTime, '23:59:59.999999999-18:00'. |
static XMLOffsetTime |
XMLOffsetTime.MIN
The minimum supported
XMLOffsetTime, '00:00:00+18:00'. |
static XMLOffsetTime |
XMLOffsetTime.MIN
The minimum supported
XMLOffsetTime, '00:00:00+18:00'. |
| Modifier and Type | Method and Description |
|---|---|
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(Date a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(Date a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(GregorianCalendar a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(GregorianCalendar a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(Instant a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(Instant a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(int nHour,
int nMinute,
int nSecond) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(int nHour,
int nMinute,
int nSecond) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(int nHour,
int nMinute,
int nSecond,
ZoneOffset aOfs) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(int nHour,
int nMinute,
int nSecond,
ZoneOffset aOfs) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalDateTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalDateTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalDateTime a,
ZoneOffset aOfs) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalDateTime a,
ZoneOffset aOfs) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalTime a,
ZoneOffset aOfs) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(LocalTime a,
ZoneOffset aOfs) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(long nMillis) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(long nMillis) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(OffsetDateTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(OffsetDateTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(ZonedDateTime a) |
static XMLOffsetTime |
PDTFactory.createXMLOffsetTime(ZonedDateTime a) |
static XMLOffsetTime |
XMLOffsetTime.from(TemporalAccessor temporal)
Obtains an instance of
XMLOffsetTime from a temporal object. |
static XMLOffsetTime |
XMLOffsetTime.from(TemporalAccessor temporal)
Obtains an instance of
XMLOffsetTime from a temporal object. |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTime() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTime() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTimeMillisOnly() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTimeMillisOnly() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTimeMillisOnlyUTC() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTimeMillisOnlyUTC() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTimeUTC() |
static XMLOffsetTime |
PDTFactory.getCurrentXMLOffsetTimeUTC() |
static XMLOffsetTime |
PDTFactory.getWithMillisOnly(XMLOffsetTime a)
Get the passed time but with micro and nanoseconds set to 0, so that only
the milliseconds part is present.
|
static XMLOffsetTime |
PDTFactory.getWithMillisOnly(XMLOffsetTime a)
Get the passed time but with micro and nanoseconds set to 0, so that only
the milliseconds part is present.
|
static XMLOffsetTime |
PDTFromString.getXMLOffsetTimeFromString(String sValue,
DateTimeFormatter aDF) |
static XMLOffsetTime |
PDTFromString.getXMLOffsetTimeFromString(String sValue,
DateTimeFormatter aDF) |
static XMLOffsetTime |
PDTFromString.getXMLOffsetTimeFromString(String sValue,
String sPattern) |
static XMLOffsetTime |
PDTFromString.getXMLOffsetTimeFromString(String sValue,
String sPattern) |
static XMLOffsetTime |
PDTWebDateHelper.getXMLOffsetTimeFromXSD(String sValue) |
static XMLOffsetTime |
PDTWebDateHelper.getXMLOffsetTimeFromXSD(String sValue) |
XMLOffsetTime |
XMLOffsetTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this time with the specified amount subtracted.
|
XMLOffsetTime |
XMLOffsetTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this time with the specified amount subtracted.
|
XMLOffsetTime |
XMLOffsetTime.minus(TemporalAmount amountToSubtract)
Returns a copy of this time with the specified amount subtracted.
|
XMLOffsetTime |
XMLOffsetTime.minus(TemporalAmount amountToSubtract)
Returns a copy of this time with the specified amount subtracted.
|
XMLOffsetTime |
XMLOffsetTime.minusHours(long hours)
Returns a copy of this
XMLOffsetTime with the specified number of
hours subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusHours(long hours)
Returns a copy of this
XMLOffsetTime with the specified number of
hours subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusMinutes(long minutes)
Returns a copy of this
XMLOffsetTime with the specified number of
minutes subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusMinutes(long minutes)
Returns a copy of this
XMLOffsetTime with the specified number of
minutes subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusNanos(long nanos)
Returns a copy of this
XMLOffsetTime with the specified number of
nanoseconds subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusNanos(long nanos)
Returns a copy of this
XMLOffsetTime with the specified number of
nanoseconds subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusSeconds(long seconds)
Returns a copy of this
XMLOffsetTime with the specified number of
seconds subtracted. |
XMLOffsetTime |
XMLOffsetTime.minusSeconds(long seconds)
Returns a copy of this
XMLOffsetTime with the specified number of
seconds subtracted. |
static XMLOffsetTime |
XMLOffsetTime.now()
Obtains the current time from the system clock in the default time-zone.
|
static XMLOffsetTime |
XMLOffsetTime.now()
Obtains the current time from the system clock in the default time-zone.
|
static XMLOffsetTime |
XMLOffsetTime.now(Clock clock)
Obtains the current time from the specified clock.
|
static XMLOffsetTime |
XMLOffsetTime.now(Clock clock)
Obtains the current time from the specified clock.
|
static XMLOffsetTime |
XMLOffsetTime.now(ZoneId zone)
Obtains the current time from the system clock in the specified time-zone.
|
static XMLOffsetTime |
XMLOffsetTime.now(ZoneId zone)
Obtains the current time from the system clock in the specified time-zone.
|
static XMLOffsetTime |
XMLOffsetTime.of(int hour,
int minute,
int second,
int nanoOfSecond,
ZoneOffset offset)
Obtains an instance of
XMLOffsetTime from an hour, minute, second
and nanosecond. |
static XMLOffsetTime |
XMLOffsetTime.of(int hour,
int minute,
int second,
int nanoOfSecond,
ZoneOffset offset)
Obtains an instance of
XMLOffsetTime from an hour, minute, second
and nanosecond. |
static XMLOffsetTime |
XMLOffsetTime.of(LocalTime time,
ZoneOffset offset)
Obtains an instance of
XMLOffsetTime from a local time and an
offset. |
static XMLOffsetTime |
XMLOffsetTime.of(LocalTime time,
ZoneOffset offset)
Obtains an instance of
XMLOffsetTime from a local time and an
offset. |
static XMLOffsetTime |
XMLOffsetTime.of(OffsetTime ofsTime) |
static XMLOffsetTime |
XMLOffsetTime.of(OffsetTime ofsTime) |
static XMLOffsetTime |
XMLOffsetTime.ofInstant(Instant instant,
ZoneId zone)
Obtains an instance of
XMLOffsetTime from an Instant and
zone ID. |
static XMLOffsetTime |
XMLOffsetTime.ofInstant(Instant instant,
ZoneId zone)
Obtains an instance of
XMLOffsetTime from an Instant and
zone ID. |
static XMLOffsetTime |
XMLOffsetTime.parse(CharSequence text)
Obtains an instance of
XMLOffsetTime from a text string such as
10:15:30+01:00. |
static XMLOffsetTime |
XMLOffsetTime.parse(CharSequence text)
Obtains an instance of
XMLOffsetTime from a text string such as
10:15:30+01:00. |
static XMLOffsetTime |
XMLOffsetTime.parse(CharSequence text,
DateTimeFormatter formatter)
Obtains an instance of
XMLOffsetTime from a text string using a
specific formatter. |
static XMLOffsetTime |
XMLOffsetTime.parse(CharSequence text,
DateTimeFormatter formatter)
Obtains an instance of
XMLOffsetTime from a text string using a
specific formatter. |
XMLOffsetTime |
XMLOffsetTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this time with the specified amount added.
|
XMLOffsetTime |
XMLOffsetTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this time with the specified amount added.
|
XMLOffsetTime |
XMLOffsetTime.plus(TemporalAmount amountToAdd)
Returns a copy of this time with the specified amount added.
|
XMLOffsetTime |
XMLOffsetTime.plus(TemporalAmount amountToAdd)
Returns a copy of this time with the specified amount added.
|
XMLOffsetTime |
XMLOffsetTime.plusHours(long hours)
Returns a copy of this
XMLOffsetTime with the specified number of
hours added. |
XMLOffsetTime |
XMLOffsetTime.plusHours(long hours)
Returns a copy of this
XMLOffsetTime with the specified number of
hours added. |
XMLOffsetTime |
XMLOffsetTime.plusMinutes(long minutes)
Returns a copy of this
XMLOffsetTime with the specified number of
minutes added. |
XMLOffsetTime |
XMLOffsetTime.plusMinutes(long minutes)
Returns a copy of this
XMLOffsetTime with the specified number of
minutes added. |
XMLOffsetTime |
XMLOffsetTime.plusNanos(long nanos)
Returns a copy of this
XMLOffsetTime with the specified number of
nanoseconds added. |
XMLOffsetTime |
XMLOffsetTime.plusNanos(long nanos)
Returns a copy of this
XMLOffsetTime with the specified number of
nanoseconds added. |
XMLOffsetTime |
XMLOffsetTime.plusSeconds(long seconds)
Returns a copy of this
XMLOffsetTime with the specified number of
seconds added. |
XMLOffsetTime |
XMLOffsetTime.plusSeconds(long seconds)
Returns a copy of this
XMLOffsetTime with the specified number of
seconds added. |
XMLOffsetTime |
XMLOffsetDateTime.toXMLOffsetTime()
Converts this date-time to an
XMLOffsetTime. |
XMLOffsetTime |
XMLOffsetDateTime.toXMLOffsetTime()
Converts this date-time to an
XMLOffsetTime. |
XMLOffsetTime |
XMLOffsetTime.truncatedTo(TemporalUnit unit)
Returns a copy of this
XMLOffsetTime with the time truncated. |
XMLOffsetTime |
XMLOffsetTime.truncatedTo(TemporalUnit unit)
Returns a copy of this
XMLOffsetTime with the time truncated. |
protected XMLOffsetTime |
XMLOffsetTime.with(LocalTime time,
ZoneOffset offset)
Returns a new time based on this one, returning
this where
possible. |
protected XMLOffsetTime |
XMLOffsetTime.with(LocalTime time,
ZoneOffset offset)
Returns a new time based on this one, returning
this where
possible. |
XMLOffsetTime |
XMLOffsetTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this time.
|
XMLOffsetTime |
XMLOffsetTime.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this time.
|
XMLOffsetTime |
XMLOffsetTime.with(TemporalField field,
long newValue)
Returns a copy of this time with the specified field set to a new value.
|
XMLOffsetTime |
XMLOffsetTime.with(TemporalField field,
long newValue)
Returns a copy of this time with the specified field set to a new value.
|
XMLOffsetTime |
XMLOffsetTime.withHour(int hour)
Returns a copy of this
XMLOffsetTime with the hour-of-day altered. |
XMLOffsetTime |
XMLOffsetTime.withHour(int hour)
Returns a copy of this
XMLOffsetTime with the hour-of-day altered. |
XMLOffsetTime |
XMLOffsetTime.withMinute(int minute)
Returns a copy of this
XMLOffsetTime with the minute-of-hour
altered. |
XMLOffsetTime |
XMLOffsetTime.withMinute(int minute)
Returns a copy of this
XMLOffsetTime with the minute-of-hour
altered. |
XMLOffsetTime |
XMLOffsetTime.withNano(int nanoOfSecond)
Returns a copy of this
XMLOffsetTime with the nano-of-second
altered. |
XMLOffsetTime |
XMLOffsetTime.withNano(int nanoOfSecond)
Returns a copy of this
XMLOffsetTime with the nano-of-second
altered. |
XMLOffsetTime |
XMLOffsetTime.withOffsetSameInstant(ZoneOffset offset)
Returns a copy of this
XMLOffsetTime with the specified offset
ensuring that the result is at the same instant on an implied day. |
XMLOffsetTime |
XMLOffsetTime.withOffsetSameInstant(ZoneOffset offset)
Returns a copy of this
XMLOffsetTime with the specified offset
ensuring that the result is at the same instant on an implied day. |
XMLOffsetTime |
XMLOffsetTime.withOffsetSameLocal(ZoneOffset offset)
Returns a copy of this
XMLOffsetTime with the specified offset
ensuring that the result has the same local time. |
XMLOffsetTime |
XMLOffsetTime.withOffsetSameLocal(ZoneOffset offset)
Returns a copy of this
XMLOffsetTime with the specified offset
ensuring that the result has the same local time. |
XMLOffsetTime |
XMLOffsetTime.withSecond(int second)
Returns a copy of this
XMLOffsetTime with the second-of-minute
altered. |
XMLOffsetTime |
XMLOffsetTime.withSecond(int second)
Returns a copy of this
XMLOffsetTime with the second-of-minute
altered. |
| Modifier and Type | Method and Description |
|---|---|
int |
XMLOffsetTime.compareTo(XMLOffsetTime o)
Compares this
XMLOffsetTime to another time. |
int |
XMLOffsetTime.compareTo(XMLOffsetTime o)
Compares this
XMLOffsetTime to another time. |
static Date |
PDTFactory.createDate(XMLOffsetTime a) |
static Date |
PDTFactory.createDate(XMLOffsetTime a) |
static LocalDateTime |
PDTFactory.createLocalDateTime(XMLOffsetTime a) |
static LocalDateTime |
PDTFactory.createLocalDateTime(XMLOffsetTime a) |
static LocalTime |
PDTFactory.createLocalTime(XMLOffsetTime a) |
static LocalTime |
PDTFactory.createLocalTime(XMLOffsetTime a) |
static OffsetDateTime |
PDTFactory.createOffsetDateTime(XMLOffsetTime a) |
static OffsetDateTime |
PDTFactory.createOffsetDateTime(XMLOffsetTime a) |
static XMLOffsetDateTime |
PDTFactory.createXMLOffsetDateTime(XMLOffsetTime a) |
static XMLOffsetDateTime |
PDTFactory.createXMLOffsetDateTime(XMLOffsetTime a) |
static ZonedDateTime |
PDTFactory.createZonedDateTime(XMLOffsetTime a) |
static ZonedDateTime |
PDTFactory.createZonedDateTime(XMLOffsetTime a) |
static String |
PDTToString.getAsString(XMLOffsetTime aTime,
Locale aDisplayLocale) |
static String |
PDTToString.getAsString(XMLOffsetTime aTime,
Locale aDisplayLocale) |
static String |
PDTWebDateHelper.getAsStringXSD(XMLOffsetTime aOT) |
static String |
PDTWebDateHelper.getAsStringXSD(XMLOffsetTime aOT) |
static long |
PDTFactory.getMillis(XMLOffsetTime a) |
static long |
PDTFactory.getMillis(XMLOffsetTime a) |
static XMLOffsetTime |
PDTFactory.getWithMillisOnly(XMLOffsetTime a)
Get the passed time but with micro and nanoseconds set to 0, so that only
the milliseconds part is present.
|
static XMLOffsetTime |
PDTFactory.getWithMillisOnly(XMLOffsetTime a)
Get the passed time but with micro and nanoseconds set to 0, so that only
the milliseconds part is present.
|
boolean |
XMLOffsetTime.isAfter(XMLOffsetTime other)
Checks if the instant of this
XMLOffsetTime is after that of the
specified time applying both times to a common date. |
boolean |
XMLOffsetTime.isAfter(XMLOffsetTime other)
Checks if the instant of this
XMLOffsetTime is after that of the
specified time applying both times to a common date. |
boolean |
XMLOffsetTime.isBefore(XMLOffsetTime other)
Checks if the instant of this
XMLOffsetTime is before that of the
specified time applying both times to a common date. |
boolean |
XMLOffsetTime.isBefore(XMLOffsetTime other)
Checks if the instant of this
XMLOffsetTime is before that of the
specified time applying both times to a common date. |
boolean |
XMLOffsetTime.isEqual(XMLOffsetTime other)
Checks if the instant of this
XMLOffsetTime is equal to that of the
specified time applying both times to a common date. |
boolean |
XMLOffsetTime.isEqual(XMLOffsetTime other)
Checks if the instant of this
XMLOffsetTime is equal to that of the
specified time applying both times to a common date. |
Copyright © 2014–2022 Philip Helger. All rights reserved.