Combines this date-time with a time-zone to create a ZonedDateTime ensuring that the result has the same instant.
Combines this date-time with a time-zone to create a ZonedDateTime trying to keep the same local date and time.
Compares this date-time to another date-time.
Formats this date-time using the specified formatter.
Gets the value of the specified field from this date-time as an int.
Gets the value of the specified field from this date-time as a long.
Gets the zone offset, such as '+01:00'.
Checks if the instant of this date-time is after that of the specified date-time.
Checks if the instant of this date-time is before that of the specified date-time.
Checks if the instant of this date-time is equal to that of the specified date-time.
Checks if the specified field is supported.
Checks if the specified unit is supported.
Returns a copy of this date-time with the specified amount subtracted.
Returns a copy of this date-time with the specified amount subtracted.
Returns a copy of this OffsetDateTime with the specified number of days subtracted.
Returns a copy of this OffsetDateTime with the specified number of hours subtracted.
Returns a copy of this OffsetDateTime with the specified number of minutes subtracted.
Returns a copy of this OffsetDateTime with the specified number of months subtracted.
Returns a copy of this OffsetDateTime with the specified number of nanoseconds subtracted.
Returns a copy of this OffsetDateTime with the specified number of seconds subtracted.
Returns a copy of this OffsetDateTime with the specified number of weeks subtracted.
Returns a copy of this OffsetDateTime with the specified number of years subtracted.
Returns a copy of this date-time with the specified amount added.
Returns a copy of this date-time with the specified amount added.
Returns a copy of this OffsetDateTime with the specified number of days added.
Returns a copy of this OffsetDateTime with the specified number of hours added.
Returns a copy of this OffsetDateTime with the specified number of minutes added.
Returns a copy of this OffsetDateTime with the specified number of months added.
Returns a copy of this OffsetDateTime with the specified number of nanoseconds added.
Returns a copy of this OffsetDateTime with the specified number of seconds added.
Returns a copy of this OffsetDateTime with the specified number of weeks added.
Returns a copy of this OffsetDateTime with the specified number of years added.
Queries this date-time using the specified query.
Gets the range of valid values for the specified field.
Gets the LocalDateTime part of this date-time.
Converts this date-time to an OffsetTime.
Converts this date-time to a ZonedDateTime using the offset as the zone ID.
Returns a copy of this OffsetDateTime with the time truncated.
Calculates the amount of time until another date-time in terms of the specified unit.
Returns an adjusted copy of this date-time.
Returns a copy of this date-time with the specified field set to a new value.
Returns a copy of this OffsetDateTime with the day-of-month altered.
Returns a copy of this OffsetDateTime with the day-of-year altered.
Returns a copy of this OffsetDateTime with the hour-of-day altered.
Returns a copy of this OffsetDateTime with the minute-of-hour altered.
Returns a copy of this OffsetDateTime with the month-of-year altered.
Returns a copy of this OffsetDateTime with the nano-of-second altered.
Returns a copy of this OffsetDateTime with the specified offset ensuring that the result is at the same instant.
Returns a copy of this OffsetDateTime with the specified offset ensuring that the result has the same local date-time.
Returns a copy of this OffsetDateTime with the second-of-minute altered.
Returns a copy of this OffsetDateTime with the year altered.
Static
fromObtains an instance of OffsetDateTime from a temporal object.
Static
nowObtains the current date-time from the system clock in the default time-zone.
Static
ofObtains an instance of OffsetDateTime from a year, month, day, hour, minute, second, nanosecond and offset.
Obtains an instance of OffsetDateTime from a date, time and offset.
Obtains an instance of OffsetDateTime from a date-time and offset.
Static
ofObtains an instance of OffsetDateTime from an Instant and zone ID.
Static
parseObtains an instance of OffsetDateTime from a text string such as 2007-12-03T10:15:30+01:00.
Optional
formatter: DateTimeFormatterStatic
timeGets a function that compares two OffsetDateTime instances based solely on the instant.
Gets a function that compares two OffsetDateTime instances based solely on the instant.
Generated using TypeDoc
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 2007-12-03T10:15:30+01:00.
See java.time.OffsetDateTime for full documentation