getTimelyStarIndex function

Map<String, int> getTimelyStarIndex(
  1. int timeIndex
)

获取时系星耀索引,包括台辅,封诰

@param timeIndex 时辰序号【0~12】 @returns 台辅,封诰索引

Implementation

Map<String, int> getTimelyStarIndex(int timeIndex) {
  final taiFuIndex = fixIndex(
    fixEarthlyBranchIndex(EarthlyBranchName.wuEarthly) + fixIndex(timeIndex),
  );
  final fenggaoIndex = fixIndex(
    fixEarthlyBranchIndex(EarthlyBranchName.yinEarthly) + fixIndex(timeIndex),
  );
  return {"taiFuIndex": taiFuIndex, "fenggaoIndex": fenggaoIndex};
}