kgetDayOfYear method

int kgetDayOfYear()

在今年的第几天

Implementation

int kgetDayOfYear() {
  var file = this;
  int month = file.month;
  int days = file.day;
  for (int i = 1; i < month; i++) {
    days = days + (_monthDay[i] ?? 0);
  }
  if (kisLeapYear() && month > 2) {
    days = days + 1;
  }
  return days;
}