Package org.apache.logging.log4j.core.util.datetime
Log4j 2 date formatting classes.
-
Interface Summary Interface Description DateParser DateParser is the "missing" interface for the parsing methods ofDateFormat
.DatePrinter DatePrinter is the "missing" interface for the format methods ofDateFormat
.FastDatePrinter.NumberRule Inner class defining a numeric rule.FastDatePrinter.Rule Inner class defining a rule. -
Class Summary Class Description FastDateFormat FastDateFormat is a fast and thread-safe version ofSimpleDateFormat
.FastDateParser FastDateParser is a fast and thread-safe version ofSimpleDateFormat
.FastDateParser.CaseInsensitiveTextStrategy A strategy that handles a text field in the parsing patternFastDateParser.CopyQuotedStrategy A strategy that copies the static or quoted field in the parsing patternFastDateParser.ISO8601TimeZoneStrategy FastDateParser.NumberStrategy A strategy that handles a number field in the parsing patternFastDateParser.PatternStrategy A strategy to parse a single field from the parsing patternFastDateParser.Strategy A strategy to parse a single field from the parsing patternFastDateParser.StrategyAndWidth Holds strategy and field widthFastDateParser.TimeZoneStrategy A strategy that handles a timezone field in the parsing patternFastDateParser.TimeZoneStrategy.TzInfo FastDatePrinter FastDatePrinter is a fast and thread-safe version ofSimpleDateFormat
.FastDatePrinter.CharacterLiteral Inner class to output a constant single character.FastDatePrinter.DayInWeekField Inner class to output the numeric day in week.FastDatePrinter.Iso8601_Rule Inner class to output a time zone as a number+/-HHMM
or+/-HH:MM
.FastDatePrinter.PaddedNumberField Inner class to output a padded number.FastDatePrinter.StringLiteral Inner class to output a constant string.FastDatePrinter.TextField Inner class to output one of a set of values.FastDatePrinter.TimeZoneDisplayKey Inner class that acts as a compound key for time zone names.FastDatePrinter.TimeZoneNameRule Inner class to output a time zone name.FastDatePrinter.TimeZoneNumberRule Inner class to output a time zone as a number+/-HHMM
or+/-HH:MM
.FastDatePrinter.TwelveHourField Inner class to output the twelve hour field.FastDatePrinter.TwentyFourHourField Inner class to output the twenty four hour field.FastDatePrinter.TwoDigitMonthField Inner class to output a two digit month.FastDatePrinter.TwoDigitNumberField Inner class to output a two digit number.FastDatePrinter.TwoDigitYearField Inner class to output a two digit year.FastDatePrinter.UnpaddedMonthField Inner class to output an unpadded month.FastDatePrinter.UnpaddedNumberField Inner class to output an unpadded number.FastDatePrinter.WeekYear Inner class to output the numeric day in week.FixedDateFormat Custom time formatter that trades flexibility for performance.Format The basic methods for performing date formatting.FormatCache<F extends Format> FormatCache is a cache and factory forFormat
s.FormatCache.MultipartKey Helper class to hold multi-part Map keys -
Enum Summary Enum Description FixedDateFormat.FixedFormat Enumeration over the supported date/time format patterns.FixedDateFormat.FixedTimeZoneFormat Fixed time zone formats.