earthBranchMonth method
PWBEarthBranchModel
earthBranchMonth()
Implementation
PWBEarthBranchModel earthBranchMonth() {
int index = theDate.month % 12;
if (theDate.isBefore(solarTerms[0].termDate)) {
if (index == 0) {
index = 11;
} else {
index -= 1;
}
}
return PWBEarthBranchModel(PWBEarchBranchEnum.values[index]);
}