length property

int length

Implementation

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

  return i;
}