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