| Package | Description |
|---|---|
| org.aoju.bus.core.date | |
| org.aoju.bus.core.lang | |
| org.aoju.bus.core.utils |
| Modifier and Type | Method and Description |
|---|---|
long |
DateTime.between(Date date,
Fields.Unit unit)
计算相差时长
|
String |
DateTime.between(Date date,
Fields.Unit unit,
Fields.Level formatLevel)
计算相差时长
|
long |
Between.between(Fields.Unit unit)
判断两个日期相差的时长
返回 给定单位的时长差
|
| Modifier and Type | Method and Description |
|---|---|
static Fields.Unit |
Fields.Unit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Unit[] |
Fields.Unit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
DateUtils.between(Date beginDate,
Date endDate,
Fields.Unit unit)
判断两个日期相差的时长,只保留绝对值
|
static long |
DateUtils.between(Date beginDate,
Date endDate,
Fields.Unit unit,
boolean isAbs)
判断两个日期相差的时长
|
Copyright © 2019. All rights reserved.