DateTimeFormatterBuilder.ISO_INSTANT

The ISO instant formatter that formats or parses an instant _in UTC, such as '2011-12-03T10:15:30Z'. !(p) This returns an immutable formatter capable of formatting and parsing the ISO-8601 instant format. When formatting, the instant will always be suffixed by 'Z' to indicate UTC. The second-of-minute is always output. The nano-of-second outputs zero, three, six or nine digits as necessary. When parsing, the behaviour of {@link DateTimeFormatterBuilder#appendOffsetId()} will be used to parse the offset, converting the instant to UTC as necessary. The time to at least the seconds field is required. Fractional seconds from zero to nine are parsed. The localized decimal style is not used. !(p) This is a special case formatter intended to allow a human readable form of an {@link hunt.time.Instant}. The {@code Instant} class is designed to only represent a point _in time and internally stores a value _in nanoseconds from a fixed epoch of 1970-01-01Z. As such, an {@code Instant} cannot be formatted as a date or time without providing some form of time-zone. This formatter allows the {@code Instant} to be formatted, by providing a suitable conversion using {@code ZoneOffset.UTC}. !(p) The format consists of: !(ul) !(li)The {@link #ISO_OFFSET_DATE_TIME} where the instant is converted from {@link ChronoField#INSTANT_SECONDS} and {@link ChronoField#NANO_OF_SECOND} using the {@code UTC} offset. Parsing is case insensitive. </ul> !(p) The returned formatter has no override chronology or zone. It uses the {@link ResolverStyle#STRICT STRICT} resolver style.

class DateTimeFormatterBuilder
static
ISO_INSTANT
()

Meta