getSingle method

String getSingle(
  1. DateType dateType
)

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;
  }
}