private RFC2616Date buildDate(Tokens tokens) {
// Sun, 06 Nov 1994 08:49:37 GMT
Builder dateBuilder = new Builder();
if (isValidDayOfMonth(tokens.starts[1], tokens.ends[1], dateBuilder) && //
isValidMonth(tokens.starts[2], tokens.ends[2], dateBuilder) && //
isValidYear(tokens.starts[3], tokens.ends[3], dateBuilder) && //
isValidHour(tokens.starts[4], tokens.ends[4], dateBuilder) && //
isValidMinuteSecond(tokens.starts[5], tokens.ends[5], dateBuilder, true) && //
isValidMinuteSecond(tokens.starts[6], tokens.ends[6], dateBuilder, false)) {
return dateBuilder.build();
}
return null;
}