同样的时间在不同干支下的生肖不相同
nsnake opened this issue · comments
如下代码:
$solar_time = SolarTime::fromYmdHms(
2024,
5,
30,
11,
00,
20
);
$lunar_hour = $solar_time->getLunarHour();
$lunar_sc_year = $lunar_hour->getYearSixtyCycle();
$lunar_sc_month = $lunar_hour->getMonthSixtyCycle();
$lunar_sc_day = $lunar_hour->getDaySixtyCycle();
$lunar_sc_time = $lunar_hour->getSixtyCycle();
echo $lunar_sc_year->getEarthBranch()->getZodiac();
echo $lunar_sc_month->getEarthBranch()->getZodiac();
echo $lunar_sc_day->getEarthBranch()->getZodiac();
echo $lunar_sc_time->getEarthBranch()->getZodiac();
输出的结果为
龙
蛇
马
马
农历年、月、日、时各自的生肖不一致很正常。