The ISO-like date-time formatter that formats or parses a date-time with
the offset and zone if available, such as '2011-12-03T10:15:30',
'2011-12-03T10:15:30+01:00' or '2011-12-03T10:15:30+01:00[Europe/Paris]'.
!(p)
This returns an immutable formatter capable of formatting and parsing
the ISO-8601 extended local or offset date-time format, as well as the
extended non-ISO form specifying the time-zone.
The format consists of:
!(ul)
!(li)The {@link #ISO_LOCAL_DATE_TIME}
!(li)If the offset is not available to format or parse then the format is complete.
!(li)The {@link ZoneOffset#getId() offset ID}. If the offset has seconds then
they will be handled even though this is not part of the ISO-8601 standard.
!(li)If the zone ID is not available or is a {@code ZoneOffset} then the format is complete.
!(li)An open square bracket '['.
!(li)The {@link ZoneId#getId() zone ID}. This is not part of the ISO-8601 standard.
Parsing is case sensitive.
!(li)A close square bracket ']'.
</ul>
!(p)
As this formatter has an optional element, it may be necessary to parse using
{@link DateTimeFormatter#parseBest}.
!(p)
The returned formatter has a chronology of ISO set to ensure dates _in
other calendar systems are correctly converted.
It has no override zone and uses the {@link ResolverStyle#STRICT STRICT} resolver style.
The ISO-like date-time formatter that formats or parses a date-time with the offset and zone if available, such as '2011-12-03T10:15:30', '2011-12-03T10:15:30+01:00' or '2011-12-03T10:15:30+01:00[Europe/Paris]'. !(p) This returns an immutable formatter capable of formatting and parsing the ISO-8601 extended local or offset date-time format, as well as the extended non-ISO form specifying the time-zone. The format consists of: !(ul) !(li)The {@link #ISO_LOCAL_DATE_TIME} !(li)If the offset is not available to format or parse then the format is complete. !(li)The {@link ZoneOffset#getId() offset ID}. If the offset has seconds then they will be handled even though this is not part of the ISO-8601 standard. !(li)If the zone ID is not available or is a {@code ZoneOffset} then the format is complete. !(li)An open square bracket '['. !(li)The {@link ZoneId#getId() zone ID}. This is not part of the ISO-8601 standard. Parsing is case sensitive. !(li)A close square bracket ']'. </ul> !(p) As this formatter has an optional element, it may be necessary to parse using {@link DateTimeFormatter#parseBest}. !(p) The returned formatter has a chronology of ISO set to ensure dates _in other calendar systems are correctly converted. It has no override zone and uses the {@link ResolverStyle#STRICT STRICT} resolver style.