- parse
Obtains an instance of OffsetDateTime from a text string using a specific
formatter. The text is par
- from
Obtains an instance of OffsetDateTime from a temporal object. A TemporalAccessor
represents some for
- of
Obtains an instance of OffsetDateTime from a date-time and offset. This creates
an offset date-time
- ofInstant
Obtains an instance of OffsetDateTime from an Instant and zone ID. This creates
an offset date-time
- toLocalDateTime
Gets the LocalDateTime part of this offset date-time. This returns a
LocalDateTime with the same yea
- withOffsetSameInstant
Returns a copy of this OffsetDateTime with the specified offset ensuring that
the result is at the s
- toInstant
Converts this date-time to an Instant.
- toString
Outputs this date-time as a String, such as 2007-12-03T10:15:30+01:00. The
output will be one of the
- getOffset
Gets the zone offset, such as '+01:00'. This is the offset of the local
date-time from UTC/Greenwich
- getYear
Gets the year field. This method returns the primitive int value for the year.
The year returned b
- now
Obtains the current date-time from the system clock in the specified time-zone.
This will query the
- plusHours
Returns a copy of this OffsetDateTime with the specified period in hours added.
This instance is im