code: private static boolean hasTz( String pattern ) {
          boolean inQuote = false;
  
          for ( int i = 0; i < pattern.length(); i++ ) {
              char ch = pattern.charAt( i );
  
              // If inside quote, except two quote connected, just copy or exit.
              if ( inQuote ) {
                  if ( ch == '\'' ) {
                      if ( i + 1 < pattern.length() && pattern.charAt( i + 1 ) == '\'' ) {
                          // Quote appeared twice continuously, interpret as one quote.
                          ++i;
                      } else {
                          inQuote = false;
                      }
                  }
                  continue;
              }
  
              // Outside quote now.
              if ( "Zzv".indexOf( ch ) >= 0 ) {
                  return true;
              }
  
              // Two consecutive quotes is a quote literal, inside or outside of quotes.
              if ( ch == '\'' ) {
                  if ( i + 1 < pattern.length() && pattern.charAt( i + 1 ) == '\'' ) {
                      i++;
                  } else {
                      inQuote = true;
                  }
              }
          }
  
          return false;
      }
docs: Find if a pattern contains informations about the timezone.
  
  @param pattern pattern
  
  @return true if the pattern contains informations about the timezone, false otherwise