public class SolarUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BASE_DAY
阳历基准日
|
static int |
BASE_MONTH
阳历基准月
|
static int |
BASE_YEAR
阳历基准年
|
static int[] |
DAYS_OF_MONTH
每月天数
|
static Map<String,String> |
FESTIVAL
日期对应的节日
|
static Map<String,List<String>> |
OTHER_FESTIVAL
日期对应的非正式节日
|
static String[] |
WEEK
星期
|
static Map<String,String> |
WEEK_FESTIVAL
几月第几个星期几对应的节日
|
static String[] |
XINGZUO
星座
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
SolarUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getDaysOfMonth(int year,
int month)
获取某年某月有多少天
|
static int |
getWeeksOfMonth(int year,
int month,
int start)
获取某年某月有多少周
|
static boolean |
isLeapYear(int year)
是否闰年
|
public static final int BASE_YEAR
public static final int BASE_MONTH
public static final int BASE_DAY
public static final String[] WEEK
public static final int[] DAYS_OF_MONTH
public static final String[] XINGZUO
public static boolean isLeapYear(int year)
year - 年public static int getDaysOfMonth(int year,
int month)
year - 年month - 月public static int getWeeksOfMonth(int year,
int month,
int start)
year - 年month - 月start - 星期几作为一周的开始,1234560分别代表星期一至星期天Copyright © 2020. All Rights Reserved.