public class SolarTerms extends Object
Constructor and Description |
---|
SolarTerms() |
Modifier and Type | Method and Description |
---|---|
static String |
getTerm(ChineseDate chineseDate)
根据农历日期获取节气
|
static String |
getTerm(Date date)
根据日期获取节气
|
static int |
getTerm(int y,
int n)
传入公历y年获得该年第n个节气的公历日期
|
static String |
getTerm(int year,
int mouth,
int day)
根据年月日获取节气
|
static String |
getTerm(LocalDate date)
根据日期获取节气
|
public static int getTerm(int y, int n)
y
- 公历年(1900-2100)n
- 二十四节气中的第几个节气(1~24);从n=1(小寒)算起public static String getTerm(Date date)
date
- 日期public static String getTerm(ChineseDate chineseDate)
chineseDate
- 农历日期public static String getTerm(LocalDate date)
date
- 日期public static String getTerm(int year, int mouth, int day)
year
- 公历年mouth
- 公历月,从1开始day
- 公历日,从1开始Copyright © 2024. All rights reserved.