try{
return new DateTimeData(parse(content), this);
} catch(Exception ex){
throw new InvalidDatatypeValueException("cvc-datatype-valid.1.2.1", new Object[]{content, "time"});
}
Parses, validates and computes normalized version of time object
param
str The lexical representation of time object hh:mm:ss.sss
with possible time zone Z or (-),(+)hh:mm
Pattern: "(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d)*)?(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?")
int len = str.length();
int[] date = new int[TOTAL_SIZE];
int[] timeZone = new int[2];
// time
// initialize to default values
date[CY]=YEAR;
date[M]=MONTH;
date[D]=DAY;
getTime(str, 0, len, date, timeZone);
//validate and normalize
validateDateTime(date, timeZone);
if ( date[utc]!=0 ) {
normalize(date, timeZone);
}
return date;