public static Date parseXSDateTime(String dateTimeStr,TimeZone defaultTZ,CalendarFieldsToDateConverter calToDateConverter) throws DateParseException {
  Matcher m=PATTERN_XS_DATE_TIME.matcher(dateTimeStr);
  if (!m.matches()) {
    throw new DateParseException("The value didn't match the expected pattern: " + PATTERN_XS_DATE_TIME);
  }
  return parseDateTime_parseMatcher(m,defaultTZ,true,calToDateConverter);
}

public static Date parseXSDateTime ( String dateTimeStr , TimeZone defaultTZ , CalendarFieldsToDateConverter calToDateConverter ) throws DateParseException { Matcher m = PATTERN_XS_DATE_TIME . matcher ( dateTimeStr ) ; if ( ! m . matches ( ) ) { throw new DateParseException ( "The value didn't match the expected pattern: " + PATTERN_XS_DATE_TIME ) ; } return parseDateTime_parseMatcher ( m , defaultTZ , true , calToDateConverter ) ; }
parses an w3c xml schema date - time string ( not date or time ) . unlike in iso 8601 : 2000 second edition , year - 1 means b . c 1 , and year 0 is invalid .
