1
0
mirror of synced 2026-10-19 21:16:11 +08:00

v1.2.13 新增道历Tao。

This commit is contained in:
6tail
2021-11-25 22:26:49 +08:00
parent 868aaac231
commit bab052909b
11 changed files with 438 additions and 9 deletions

View File

@@ -28,12 +28,12 @@ public class Foto {
return new Foto(lunar);
}
public static Foto fromYmdHms(int lunarYear, int lunarMonth, int lunarDay, int hour, int minute, int second) {
return Foto.fromLunar(Lunar.fromYmdHms(lunarYear + DEAD_YEAR - 1, lunarMonth, lunarDay, hour, minute, second));
public static Foto fromYmdHms(int year, int month, int day, int hour, int minute, int second) {
return Foto.fromLunar(Lunar.fromYmdHms(year + DEAD_YEAR - 1, month, day, hour, minute, second));
}
public static Foto fromYmd(int lunarYear, int lunarMonth, int lunarDay) {
return fromYmdHms(lunarYear, lunarMonth, lunarDay, 0, 0, 0);
public static Foto fromYmd(int year, int month, int day) {
return fromYmdHms(year, month, day, 0, 0, 0);
}
public Lunar getLunar() {