| Package | Description |
|---|---|
| org.aoju.bus.core.consts | |
| org.aoju.bus.core.date | |
| org.aoju.bus.core.utils |
| Modifier and Type | Method and Description |
|---|---|
static Fields.DateField |
Fields.DateField.of(int calendarPartIntValue)
将
Calendar相关值转换为DatePart枚举对象 |
static Fields.DateField |
Fields.DateField.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.DateField[] |
Fields.DateField.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DateTime.getField(Fields.DateField field)
获得日期的某个部分
例如获得年的部分,则使用 getField(DatePart.YEAR)
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
DateUtils.isExpired(Date startDate,
Fields.DateField dateField,
int timeLength,
Date checkedDate)
判定给定开始时间经过某段时间后是否过期
|
static DateTime |
DateUtils.offset(Date date,
Fields.DateField dateField,
int offset)
获取指定日期偏移指定时间后的时间
|
Copyright © 2019. All rights reserved.