getIndexInYear method
Implementation
int getIndexInYear() {
int offset = Solar.fromYmd(_year, 1, 1).getWeek() - _start;
if (offset < 0) {
offset += 7;
}
return ((SolarUtil.getDaysInYear(_year, _month, _day) + offset) / 7.0).ceil();
}
int getIndexInYear() {
int offset = Solar.fromYmd(_year, 1, 1).getWeek() - _start;
if (offset < 0) {
offset += 7;
}
return ((SolarUtil.getDaysInYear(_year, _month, _day) + offset) / 7.0).ceil();
}