dayIndexOfYear property
int
get
dayIndexOfYear
处在当年的第几天
Implementation
int get dayIndexOfYear {
int days = day;
for (int i = 1; i < month; i++) {
days += DateTime(year, i + 1).subtract(Duration(days: 1)).day;
}
return days;
}