Package org.apache.commons.lang3.time
Class FastDateParser.TimeZoneStrategy
java.lang.Object
org.apache.commons.lang3.time.FastDateParser.Strategy
org.apache.commons.lang3.time.FastDateParser.PatternStrategy
org.apache.commons.lang3.time.FastDateParser.TimeZoneStrategy
- Enclosing class:
- FastDateParser
A strategy that handles a time zone field in the parsing pattern
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intIndex of zone idprivate final Localeprivate static final Stringprivate final Map<String,FastDateParser.TimeZoneStrategy.TzInfo> Fields inherited from class org.apache.commons.lang3.time.FastDateParser.PatternStrategy
pattern -
Constructor Summary
ConstructorsConstructorDescriptionTimeZoneStrategy(Locale locale) Constructs a Strategy that parses a TimeZone -
Method Summary
Modifier and TypeMethodDescription(package private) voidsetCalendar(FastDateParser parser, Calendar calendar, String timeZone) toString()Converts this instance to a handy debug string.Methods inherited from class org.apache.commons.lang3.time.FastDateParser.PatternStrategy
createPattern, createPattern, isNumber, parse
-
Field Details
-
RFC_822_TIME_ZONE
- See Also:
-
GMT_OPTION
- See Also:
-
locale
-
tzNames
-
ID
private static final int IDIndex of zone id- See Also:
-
-
Constructor Details
-
TimeZoneStrategy
TimeZoneStrategy(Locale locale) Constructs a Strategy that parses a TimeZone- Parameters:
locale- The Locale
-
-
Method Details
-
setCalendar
- Specified by:
setCalendarin classFastDateParser.PatternStrategy
-
toString
Converts this instance to a handy debug string.- Overrides:
toStringin classFastDateParser.PatternStrategy- Since:
- 3.12.0
-