getLength method
Implementation
int getLength() {
int i = 0;
if (year != null) i += 1;
if (month != null) i += 1;
if (day != null) i += 1;
if (hour != null) i += 1;
if (minute != null) i += 1;
if (second != null) i += 1;
return i;
}
int getLength() {
int i = 0;
if (year != null) i += 1;
if (month != null) i += 1;
if (day != null) i += 1;
if (hour != null) i += 1;
if (minute != null) i += 1;
if (second != null) i += 1;
return i;
}