public static TimeZone parseXSTimeZone(String timeZoneStr) throws DateParseException {
  Matcher m=PATTERN_XS_TIME_ZONE.matcher(timeZoneStr);
  if (!m.matches()) {
    throw new DateParseException("The time zone offset didn't match the expected pattern: " + PATTERN_XS_TIME_ZONE);
  }
  return parseMatchingTimeZone(timeZoneStr,null);
}

public static TimeZone parseXSTimeZone ( String timeZoneStr ) throws DateParseException { Matcher m = PATTERN_XS_TIME_ZONE . matcher ( timeZoneStr ) ; if ( ! m . matches ( ) ) { throw new DateParseException ( "The time zone offset didn't match the expected pattern: " + PATTERN_XS_TIME_ZONE ) ; } return parseMatchingTimeZone ( timeZoneStr , null ) ; }
parses the time zone part from a w3c xml schema date / time / datetime .
