Uses of Class
net.time4j.format.expert.ChronoFormatter
Package
Description
This package contains the expert-level format- and parse engine of Time4J.
Interval support.
-
Uses of ChronoFormatter in net.time4j.format.expert
Modifier and TypeFieldDescriptionstatic ChronoFormatter<PlainDate>
Iso8601Format.BASIC_CALENDAR_DATE
Defines the basic ISO-8601-format with year, month and day of month using the pattern "uuuuMMdd".static ChronoFormatter<PlainDate>
Iso8601Format.BASIC_DATE
Similar toIso8601Format.BASIC_CALENDAR_DATE
but its parser can also understand ordinal dates or week dates.static ChronoFormatter<PlainTimestamp>
Iso8601Format.BASIC_DATE_TIME
Defines the basic ISO-8601-format for a composition of calendar date and wall time with hour and minute using the pattern "uuuuMMdd'T'HH[mm[ss[,SSSSSSSSS]]]".static ChronoFormatter<Moment>
Iso8601Format.BASIC_DATE_TIME_OFFSET
Defines the basic ISO-8601-format for a composition of calendar date, wall time and timezone offset using the pattern "uuuuMMdd'T'HH[mm[ss[,SSSSSSSSS]]]{offset}".static ChronoFormatter<PlainDate>
Iso8601Format.BASIC_ORDINAL_DATE
Defines the basic ISO-8601-format with year and day of year using the pattern "uuuuDDD".static ChronoFormatter<PlainTime>
Iso8601Format.BASIC_WALL_TIME
Defines the basic ISO-8601-format for a wall time with hour, minute and optional second using the pattern "HH[mm[ss[,SSSSSSSSS]]]".static ChronoFormatter<PlainDate>
Iso8601Format.BASIC_WEEK_DATE
Defines the basic ISO-8601-format for a week date using the pattern "YYYYWwwE".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_CALENDAR_DATE
Defines the extended ISO-8601-format with year, month and day of month using the pattern "uuuu-MM-dd".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_DATE
Similar toIso8601Format.EXTENDED_CALENDAR_DATE
but its parser can also understand ordinal dates or week dates.static ChronoFormatter<PlainTimestamp>
Iso8601Format.EXTENDED_DATE_TIME
Defines the extended ISO-8601-format for a composition of calendar date and wall time with hour and minute using the pattern "uuuu-MM-dd'T'HH[:mm[:ss[,SSSSSSSSS]]]".static ChronoFormatter<Moment>
Iso8601Format.EXTENDED_DATE_TIME_OFFSET
Defines the extended ISO-8601-format for a composition of calendar date, wall time and timezone offset using the pattern "uuuu-MM-dd'T'HH[:mm[:ss[,SSSSSSSSS]]]{offset}".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_ORDINAL_DATE
Defines the extended ISO-8601-format with year and day of year using the pattern "uuuu-DDD".static ChronoFormatter<PlainTime>
Iso8601Format.EXTENDED_WALL_TIME
Defines the extended ISO-8601-format for a wall time with hour, minute and optional second using the pattern "HH[:mm[:ss[,SSSSSSSSS]]]".static ChronoFormatter<PlainDate>
Iso8601Format.EXTENDED_WEEK_DATE
Defines the extended ISO-8601-format for a week date using the pattern "YYYY-Www-E".static ChronoFormatter<Moment>
ChronoFormatter.RFC_1123
Special formatter for printing or parsing moments according to the RFC-1123-specification.Modifier and TypeMethodDescriptionChronoFormatter.Builder.build()
Finishes the build and creates a newChronoFormatter
.ChronoFormatter.Builder.build(Attributes attributes)
Finishes the build and creates a newChronoFormatter
.static ChronoFormatter<PlainDate>
ChronoFormatter.ofDatePattern(String pattern, PatternType type, Locale locale)
Constructs a pattern-based formatter for plain date objects.static ChronoFormatter<PlainDate>
ChronoFormatter.ofDateStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for plain date objects.static ChronoFormatter<PlainDate>
ChronoFormatter.ofDateStyle(DisplayMode style, Locale locale)
Deprecated.static ChronoFormatter<CalendarDate>
ChronoFormatter.ofGenericCalendarPattern(String pattern, Locale locale)
Constructs a CLDR-pattern-based formatter for general calendar chronologies.static ChronoFormatter<CalendarDate>
ChronoFormatter.ofGenericCalendarStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for general calendar chronologies which are compatible to CLDR.static ChronoFormatter<CalendarDate>
ChronoFormatter.ofGenericCalendarStyle(DisplayMode style, Locale locale)
Deprecated.static ChronoFormatter<Moment>
ChronoFormatter.ofGenericMomentPattern(String pattern, Locale locale)
Constructs a CLDR-pattern-based formatter for universal timestamps with calendar override derived from given locale.static ChronoFormatter<Moment>
ChronoFormatter.ofMomentPattern(String pattern, PatternType type, Locale locale, TZID tzid)
Constructs a pattern-based formatter for global timestamp objects.static ChronoFormatter<Moment>
ChronoFormatter.ofMomentStyle(FormatStyle dateStyle, FormatStyle timeStyle, Locale locale, TZID tzid)
Constructs a style-based formatter for moments.static ChronoFormatter<Moment>
ChronoFormatter.ofMomentStyle(DisplayMode dateStyle, DisplayMode timeStyle, Locale locale, TZID tzid)
Deprecated.static <T> ChronoFormatter<T>
ChronoFormatter.ofPattern(String pattern, PatternType type, Locale locale, Chronology<T> chronology)
Constructs a pattern-based formatter for general chronologies.static <T extends LocalizedPatternSupport>
ChronoFormatter<T>ChronoFormatter.ofStyle(FormatStyle style, Locale locale, Chronology<T> chronology)
Constructs a style-based formatter for general chronologies.static <T extends LocalizedPatternSupport>
ChronoFormatter<T>ChronoFormatter.ofStyle(DisplayMode style, Locale locale, Chronology<T> chronology)
Deprecated.static ChronoFormatter<PlainTime>
ChronoFormatter.ofTimePattern(String pattern, PatternType type, Locale locale)
Constructs a pattern-based formatter for clock time objects.static ChronoFormatter<PlainTimestamp>
ChronoFormatter.ofTimestampPattern(String pattern, PatternType type, Locale locale)
Constructs a pattern-based formatter for plain timestamps.static ChronoFormatter<PlainTimestamp>
ChronoFormatter.ofTimestampStyle(FormatStyle dateStyle, FormatStyle timeStyle, Locale locale)
Constructs a style-based formatter for plain timestamps.static ChronoFormatter<PlainTimestamp>
ChronoFormatter.ofTimestampStyle(DisplayMode dateStyle, DisplayMode timeStyle, Locale locale)
Deprecated.static ChronoFormatter<PlainTime>
ChronoFormatter.ofTimeStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for plain time objects.static ChronoFormatter<PlainTime>
ChronoFormatter.ofTimeStyle(DisplayMode style, Locale locale)
Deprecated.Creates a copy of this formatter with given locale.<A extends Enum<A>>
ChronoFormatter<T>ChronoFormatter.with(AttributeKey<A> key, A value)
Creates a copy of this formatter with given enum-attribute.ChronoFormatter.with(AttributeKey<Boolean> key, boolean value)
Creates a copy of this formatter with given boolean-attribute.ChronoFormatter.with(AttributeKey<Character> key, char value)
Creates a copy of this formatter with given char-attribute.ChronoFormatter.with(AttributeKey<Integer> key, int value)
Creates a copy of this formatter with given int-attribute.ChronoFormatter.with(StartOfDay startOfDay)
Sets the start of calendar day.ChronoFormatter.with(Attributes attributes)
Creates a copy of this formatter with given standard attributes.ChronoFormatter.with(ChronoHistory history)
Creates a copy of this formatter with the given chronological history of gregorian calendar reforms.Creates a copy of this formatter with given timezone which shall be used in formatting or parsing.ChronoFormatter.withAlternativeEraNames()
Creates a copy of this formatter with alternative era names.ChronoFormatter.withCalendarVariant(String variant)
Sets the calendar variant.ChronoFormatter.withCalendarVariant(VariantSource variantSource)
Sets the calendar variant.<V> ChronoFormatter<T>
ChronoFormatter.withDefault(ChronoElement<V> element, V value)
Determines a default replacement value for given element.<V> ChronoFormatter<T>
ChronoFormatter.withDefaultSource(ChronoElement<V> element, ChronoElement<V> source)
Determines a source reference in parsed data for a default replacement value of given element.<V> ChronoFormatter<T>
ChronoFormatter.withDefaultSupplier(ChronoElement<V> element, Supplier<V> supplier)
Determines a supplier for a default replacement value of given element.ChronoFormatter.withGregorianCutOver(PlainDate date)
Short-cut forwith(ChronoHistory.ofGregorianReform(date))
.ChronoFormatter.withLatinEraNames()
Creates a copy of this formatter with latin era names.ChronoFormatter.withStdTimezone()
Equivalent towith(Timezone.ofSystem())
.ChronoFormatter.withTimezone(String tzid)
Equivalent towith(Timezone.of(tzid))
.ChronoFormatter.withTimezone(TZID tzid)
Equivalent towith(Timezone.of(tzid))
.Modifier and TypeMethodDescription<V extends ChronoEntity<V>>
ChronoFormatter.Builder<T>ChronoFormatter.Builder.addCustomized(ChronoElement<V> element, ChronoFormatter<V> formatter)
Defines a customized format element for given chronological element.static <T extends ChronoEntity<T>>
MultiFormatParser<T>MultiFormatParser.of(ChronoFormatter<T>... formats)
Creates a new multiple format parser.Modifier and TypeMethodDescriptionstatic <T extends ChronoEntity<T>>
MultiFormatParser<T>MultiFormatParser.of(List<ChronoFormatter<T>> formats)
Creates a new multiple format parser. -
Uses of ChronoFormatter in net.time4j.range
Modifier and TypeMethodDescriptionstatic ChronoFormatter<SpanOfWeekdays>
Creates a formatter for given dynamic format pattern and locale.
ofDateStyle(FormatStyle, Locale)