public class ChineseMonth extends Object
Constructor and Description |
---|
ChineseMonth() |
Modifier and Type | Method and Description |
---|---|
static String |
getChineseMonthName(boolean isLeapMonth,
int month,
boolean isTraditional)
获得农历月称呼
当为传统表示时,表示为二月,腊月,或者润正月等 当为非传统表示时,二月,十二月,或者润一月等 |
static boolean |
isLeapMonth(int year,
int month)
当前农历月份是否为闰月
|
public static boolean isLeapMonth(int year, int month)
year
- 农历年month
- 农历月public static String getChineseMonthName(boolean isLeapMonth, int month, boolean isTraditional)
isLeapMonth
- 是否闰月month
- 月份,从1开始,如果是闰月,应传入需要显示的月份isTraditional
- 是否传统表示,例如一月传统表示为正月Copyright © 2024. All rights reserved.