getZuoYouIndex function
获取左辅右弼的索引(按生月)
- 辰上顺正寻左辅
- 戌上逆正右弼当
解释:
- 从辰顺数农历月份数是左辅的索引
- 从戌逆数农历月份数是右弼的索引
@param lunarMonth 农历月份 @returns 左辅、右弼索引
Implementation
Map<String, int> getZuoYouIndex(int lunarMonth) {
final zuoIndex = fixIndex(
fixEarthlyBranchIndex(EarthlyBranchName.chenEarthly) + (lunarMonth - 1),
);
final youIndex = fixIndex(
fixEarthlyBranchIndex(EarthlyBranchName.xuEarthly) - (lunarMonth - 1),
);
return {"zuoIndex": zuoIndex, "youIndex": youIndex};
}