| Package | Description | 
|---|---|
| cn.hutool.core.date | 日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口 | 
| Modifier and Type | Method and Description | 
|---|---|
| BetweenFormatter.Level | BetweenFormatter. getLevel()获得 格式化级别 | 
| static BetweenFormatter.Level | BetweenFormatter.Level. valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static BetweenFormatter.Level[] | BetweenFormatter.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,
       BetweenFormatter.Level formatLevel)计算相差时长 | 
| static String | DateUtil. formatBetween(Date beginDate,
             Date endDate,
             BetweenFormatter.Level level)格式化日期间隔输出 | 
| static String | DateUtil. formatBetween(long betweenMs,
             BetweenFormatter.Level level)格式化日期间隔输出 | 
| void | BetweenFormatter. setLevel(BetweenFormatter.Level level)设置格式化级别 | 
| String | DateBetween. toString(BetweenFormatter.Level level)格式化输出时间差 | 
| String | DateBetween. toString(DateUnit unit,
        BetweenFormatter.Level level)格式化输出时间差 | 
| Modifier and Type | Method and Description | 
|---|---|
| BetweenFormatter | BetweenFormatter. setLevelFormatter(Function<BetweenFormatter.Level,String> levelFormatter)设置级别格式化器 | 
| Constructor and Description | 
|---|
| BetweenFormatter(long betweenMs,
                BetweenFormatter.Level level)构造 | 
| BetweenFormatter(long betweenMs,
                BetweenFormatter.Level level,
                int levelMaxCount)构造 | 
Copyright © 2025. All rights reserved.