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 String
private static final int
Index of zone idprivate final Locale
private static final String
private 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) void
setCalendar
(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:
setCalendar
in classFastDateParser.PatternStrategy
-
toString
Converts this instance to a handy debug string.- Overrides:
toString
in classFastDateParser.PatternStrategy
- Since:
- 3.12.0
-