Class FastDateParser.TimeZoneStrategy

    • Field Detail

      • RFC_822_TIME_ZONE

        private static final java.lang.String RFC_822_TIME_ZONE
        See Also:
        Constant Field Values
      • ID

        private static final int ID
        Index of zone id from DateFormatSymbols.getZoneStrings().
        See Also:
        Constant Field Values
      • locale

        private final java.util.Locale locale
      • tzNames

        private final java.util.Map<java.lang.String,​FastDateParser.TimeZoneStrategy.TzInfo> tzNames
        Using lower case only or upper case only will cause problems with some Locales like Turkey, Armenia, Colognian and also depending on the Java version. For details, see https://garygregory.wordpress.com/2015/11/03/java-lowercase-conversion-turkey/
    • Constructor Detail

      • TimeZoneStrategy

        TimeZoneStrategy​(java.util.Locale locale)
        Constructs a Strategy that parses a TimeZone.
        Parameters:
        locale - The Locale.
    • Method Detail

      • skipTimeZone

        static boolean skipTimeZone​(java.lang.String tzId)
        Tests whether to skip the given time zone, true if TimeZone.getTimeZone().

        On Java 25 and up, skips short IDs if ignoreTimeZoneShortIDs is true.

        This method is package private only for testing.

        Parameters:
        tzId - the ID to test.
        Returns:
        Whether to skip the given time zone ID.