Bluestep JS Documentation
    Preparing search index...

    Class DateTimeFormatter

    Formatter for printing and parsing date-time objects.

    See java.time.format.DateTimeFormatter for full documentation

    Index

    Constructors

    Properties

    BASIC_ISO_DATE: DateTimeFormatter

    The ISO date formatter that formats or parses a date without an offset, such as '20111203'.

    The ISO date formatter that formats or parses a date with the offset if available, such as '2011-12-03' or '2011-12-03+01:00'.

    ISO_DATE_TIME: DateTimeFormatter

    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]'.

    ISO_INSTANT: DateTimeFormatter

    The ISO instant formatter that formats or parses an instant in UTC, such as '2011-12-03T10:15:30Z'.

    ISO_LOCAL_DATE: DateTimeFormatter

    The ISO date formatter that formats or parses a date without an offset, such as '2011-12-03'.

    ISO_LOCAL_DATE_TIME: DateTimeFormatter

    The ISO date-time formatter that formats or parses a date-time without an offset, such as '2011-12-03T10:15:30'.

    ISO_LOCAL_TIME: DateTimeFormatter

    The ISO time formatter that formats or parses a time without an offset, such as '10:15' or '10:15:30'.

    ISO_OFFSET_DATE: DateTimeFormatter

    The ISO date formatter that formats or parses a date with an offset, such as '2011-12-03+01:00'.

    ISO_OFFSET_DATE_TIME: DateTimeFormatter

    The ISO date-time formatter that formats or parses a date-time with an offset, such as '2011-12-03T10:15:30+01:00'.

    ISO_OFFSET_TIME: DateTimeFormatter

    The ISO time formatter that formats or parses a time with an offset, such as '10:15+01:00' or '10:15:30+01:00'.

    ISO_ORDINAL_DATE: DateTimeFormatter

    The ISO date formatter that formats or parses the ordinal date without an offset, such as '2012-337'.

    The ISO time formatter that formats or parses a time, with the offset if available, such as '10:15', '10:15:30' or '10:15:30+01:00'.

    ISO_WEEK_DATE: DateTimeFormatter

    The ISO date formatter that formats or parses the week-based date without an offset, such as '2012-W48-6'.

    ISO_ZONED_DATE_TIME: DateTimeFormatter

    The ISO-like date-time formatter that formats or parses a date-time with offset and zone, such as '2011-12-03T10:15:30+01:00[Europe/Paris]'.

    RFC_1123_DATE_TIME: DateTimeFormatter

    The RFC-1123 date-time formatter, such as 'Tue, 3 Jun 2008 11:05:30 GMT'.

    Methods

    • Formats a date-time object using this formatter.

      Parameters

      Returns string

    • Gets the resolver fields to use during parsing.

      Returns Set<TemporalField>

    • Gets the overriding zone to be used during formatting.

      Returns ZoneId

    • Fully parses the text producing a temporal object.

      Parameters

      • text: string

      Returns TemporalAccessor

    • Fully parses the text producing an object of the specified type.

      Type Parameters

      • T

      Parameters

      Returns T

    • Returns this formatter as a java.text.Format instance.

      Returns Format

    • Returns this formatter as a java.text.Format instance that will parse using the specified query.

      Parameters

      Returns Format

    • Creates a formatter using the specified pattern.

      Parameters

      • pattern: string

      Returns DateTimeFormatter

    • A query that provides access to the excess days that were parsed.

      Returns TemporalQueryFn<Period>

    • A query that provides access to whether a leap-second was parsed.

      Returns TemporalQueryFn<Boolean>