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