public class GanZhi extends Object
Constructor and Description |
---|
GanZhi() |
Modifier and Type | Method and Description |
---|---|
static String |
cyclicalm(int num)
传入 月日的offset 传回干支, 0=甲子
|
static String |
getGanzhiOfDay(int year,
int month,
int day)
获取干支日
|
static String |
getGanzhiOfMonth(int year,
int month,
int day)
获取干支月
|
static String |
getGanzhiOfYear(int year)
传入年传回干支
|
public static String cyclicalm(int num)
num
- 月日的offsetpublic static String getGanzhiOfYear(int year)
year
- 农历年public static String getGanzhiOfMonth(int year, int month, int day)
year
- 公历年month
- 公历月,从1开始day
- 公历日public static String getGanzhiOfDay(int year, int month, int day)
year
- 公历年month
- 公历月,从1开始day
- 公历日Copyright © 2024. All rights reserved.