public class Constant extends Object
Modifier and Type | Field and Description |
---|---|
static MonthDay |
CAPRICORN_END
摩羯座的终止日期 01-19
|
static MonthDay |
CAPRICORN_START
摩羯座的起始日期 12-22
|
static Pattern |
CHINESE_REGEX
中文
|
static String |
CHUNJIE
春节,节日处理使用
|
static String |
CHUXI
除夕,节日处理使用
|
static int |
HOURS_PER_DAY
每天小时数
|
static int |
MILLISECOND_PER_DAY
每天毫秒数
|
static int |
MILLISECOND_PER_SECONDS
每秒毫秒数
|
static int |
MINUTES_PER_HOUR
每小时分钟数
|
static MonthDay |
MONTH_DAY_END
月日的终止值 12-31
|
static MonthDay |
MONTH_DAY_START
月日的起始值 01-01
|
static String |
MONTHDAY_FORMAT_PRE
MonthDay 默认解析前缀
解析字符串需要加前缀,如"--12-03"
|
static Pattern |
NUMERIC_REGEX
纯数字
|
static LocalTime |
ONECLOCK
1点
|
static String |
PARSE_LOCAL_DATE_EXCEPTION
解析日期时异常
|
static int |
SECONDS_PER_DAY
每天秒数
|
static int |
SECONDS_PER_MINUTE
每分钟秒数
|
static Pattern |
START_WITH_WORD_REGEX
字母开头
|
static long |
TIME_NLP_TIMEOUT
TimeNLP 默认解析超时时间 3s
|
static LocalTime |
TWENTYTHREECLOCK
23点
|
static String |
ZH
中文
|
Modifier and Type | Method and Description |
---|---|
static Constant |
getInstance() |
static boolean |
isChineseLanguage()
是否为中文语言环境
|
public static final int HOURS_PER_DAY
public static final int MINUTES_PER_HOUR
public static final int SECONDS_PER_MINUTE
public static final int MILLISECOND_PER_SECONDS
public static final int SECONDS_PER_DAY
public static final int MILLISECOND_PER_DAY
public static final String PARSE_LOCAL_DATE_EXCEPTION
public static final Pattern NUMERIC_REGEX
public static final Pattern START_WITH_WORD_REGEX
public static final Pattern CHINESE_REGEX
public static final LocalTime ONECLOCK
public static final LocalTime TWENTYTHREECLOCK
public static final String MONTHDAY_FORMAT_PRE
public static final MonthDay MONTH_DAY_START
public static final MonthDay MONTH_DAY_END
public static final MonthDay CAPRICORN_START
public static final MonthDay CAPRICORN_END
public static final long TIME_NLP_TIMEOUT
public static final String ZH
public static final String CHUXI
public static final String CHUNJIE
public static Constant getInstance()
public static boolean isChineseLanguage()
Copyright © 2021. All rights reserved.