| Package | Description |
|---|---|
| org.aoju.bus.core.date | |
| org.aoju.bus.core.lang | |
| org.aoju.bus.core.toolkit |
| Modifier and Type | Method and Description |
|---|---|
long |
DateTime.between(Date date,
Fields.Time unit)
计算相差时长
|
String |
DateTime.between(Date date,
Fields.Time unit,
Fields.Level formatLevel)
计算相差时长
|
long |
Between.between(Fields.Time unit)
判断两个日期相差的时长
返回 给定单位的时长差
|
| Modifier and Type | Method and Description |
|---|---|
static Fields.Time |
Fields.Time.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Time[] |
Fields.Time.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 |
DateKit.between(Date beginDate,
Date endDate,
Fields.Time unit)
判断两个日期相差的时长,只保留绝对值
|
static long |
DateKit.between(Date beginDate,
Date endDate,
Fields.Time unit,
boolean isAbs)
判断两个日期相差的时长
|
Copyright © 2020. All rights reserved.