mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -75,7 +75,7 @@ public class GanZhi {
|
|||||||
public static String getGanzhiOfDay(int year, int month, int day) {
|
public static String getGanzhiOfDay(int year, int month, int day) {
|
||||||
// 与1970-01-01相差天数,不包括当天
|
// 与1970-01-01相差天数,不包括当天
|
||||||
final long days = LocalDate.of(year, month, day).toEpochDay() - 1;
|
final long days = LocalDate.of(year, month, day).toEpochDay() - 1;
|
||||||
//1899-12-21是农历1899年腊月甲子日 40:相差1900-01-31有40天
|
//1899-12-21是农历1899年腊月甲子日 41:相差1900-01-31有41天
|
||||||
return cyclicalm((int) (days - LunarInfo.BASE_DAY + 40));
|
return cyclicalm((int) (days - LunarInfo.BASE_DAY + 41));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user