| Package | Description |
|---|---|
| com.lc.core.date | |
| com.lc.utils |
| Modifier and Type | Method and Description |
|---|---|
BetweenFormater.Level |
BetweenFormater.getLevel()
获得 格式化级别
|
static BetweenFormater.Level |
BetweenFormater.Level.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BetweenFormater.Level[] |
BetweenFormater.Level.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
DateTime.between(Date date,
DateUnit unit,
BetweenFormater.Level formatLevel)
计算相差时长
|
void |
BetweenFormater.setLevel(BetweenFormater.Level level)
设置格式化级别
|
String |
DateBetween.toString(BetweenFormater.Level level)
格式化输出时间差
|
| Constructor and Description |
|---|
BetweenFormater(long betweenMs,
BetweenFormater.Level level)
构造
|
BetweenFormater(long betweenMs,
BetweenFormater.Level level,
int levelMaxCount)
构造
|
| Modifier and Type | Method and Description |
|---|---|
static String |
UDateUtil.formatBetween(long betweenMs,
BetweenFormater.Level level)
格式化日期间隔输出
|
Copyright © 2020. All rights reserved.