Package | Description |
---|---|
org.dromara.hutool.core.data |
数据相关封装和工具类
在Hutool中,“数据”是指社会属性的内容 如ID、电话、统一社会信用代码、密码、坐标系、数据脱敏等。 |
org.dromara.hutool.core.date |
日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口
|
org.dromara.hutool.core.date.chinese | |
org.dromara.hutool.core.date.format.parser |
提供日期解析相关封装,主要包括:
DateParser
/ | \
FastDateParser RegisterDateParser RegexDateParser
(根据日期格式解析) (根据注册的模式匹配解析) (通过预定义正则解析)
|
org.dromara.hutool.core.util |
提供各种工具方法,按照归类入口为XXXUtil,如字符串工具StrUtil等
|
org.dromara.hutool.poi.excel.sax |
Sax方式操作Excel方式的封装
|
Class and Description |
---|
DateTime |
Class and Description |
---|
BetweenFormatter
时长格式化器,用于格式化输出两个日期相差的时长
根据 BetweenFormatter.Level 不同,调用BetweenFormatter.format() 方法后返回类似于:
XX小时XX分XX秒
XX天XX小时
XX月XX天XX小时
|
BetweenFormatter.Level
格式化等级枚举
|
DateBetween
日期间隔
|
DateBuilder
DateBuilder类用于构建和操作日期。
|
DateException
工具类异常
|
DateField
日期各个部分的枚举
与Calendar相应值对应 |
DateModifier.ModifyType
修改类型
|
DateRange
日期范围
|
DateTime |
DateUnit
日期时间单位,每个单位都是以毫秒为基数
|
Month
月份枚举
与Calendar中的月份int值对应 |
Quarter
季度枚举
|
StopWatch
秒表封装
此工具用于存储一组任务的耗时时间,并一次性打印对比。 |
StopWatch.TaskInfo
存放任务名称和花费时间对象
|
TemporalAccessorUtil
TemporalAccessor 工具类封装 |
TemporalUtil
Temporal 工具类封装 |
Week
星期枚举
与Calendar中的星期int值对应 |
Class and Description |
---|
DateBetween
日期间隔
|
Class and Description |
---|
DateException
工具类异常
|
Class and Description |
---|
DateException
工具类异常
|
DateTime |
Class and Description |
---|
DateField
日期各个部分的枚举
与Calendar相应值对应 |
DateTime |
Class and Description |
---|
DateTime |
Copyright © 2025. All rights reserved.