-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
protected static int getXunIndex(String ganZhi) {
int ganIndex = find(ganZhi.substring(0, 1), GAN, 0);
int zhiIndex = find(ganZhi.substring(1), ZHI, 0);
int diff = ganIndex - zhiIndex;
if (diff < 0) {
diff += 12;
}
return diff / 2;
}
public static String getXun(String ganZhi) {
return XUN[getXunIndex(ganZhi)];
}
public static String getXunKong(String ganZhi) {
return XUN_KONG[getXunIndex(ganZhi)];
}
int ganIndex = find(ganZhi.substring(0, 1), GAN, 0); ganZhi空了会报错
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels