Package | Description |
---|---|
com.lc.core.date |
Modifier and Type | Method and Description |
---|---|
static DateUnit |
DateUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateUnit[] |
DateUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
long |
DateTime.between(Date date,
DateUnit unit)
计算相差时长
|
String |
DateTime.between(Date date,
DateUnit unit,
BetweenFormater.Level formatLevel)
计算相差时长
|
long |
DateBetween.between(DateUnit unit)
判断两个日期相差的时长
返回 给定单位的时长差 |
Copyright © 2020. All rights reserved.