length property

int get length

Implementation

int get length {
  int i = 0;
  if (year) ++i;
  if (month) ++i;
  if (day) ++i;
  if (hour) ++i;
  if (minute) ++i;
  if (second) ++i;

  return i;
}