getSingle method
Implementation
String getSingle(DateType dateType) {
switch (dateType) {
case DateType.Year:
return this.years;
case DateType.Month:
return this.month;
case DateType.Day:
return this.days;
case DateType.Hour:
return this.hours;
case DateType.Minute:
return this.minutes;
case DateType.Second:
return this.seconds;
}
}