Uses of Enum Class
org.miaixz.bus.core.lang.Fields.Units
Packages that use Fields.Units
Package
Description
日期封装,日期的核心为DateTime类
语言特性包,包括大量便捷的数据结构,包括:
ANSI:ANSI编码
Builder:构建器
Caller:查找调用者
Copier:拷贝(复制)
Generator:生成器
Getter:getXXX抽象
Intern:规范化表示形式
Loader:加载器的抽象
Mutable:可变值对象封装
Range:区间和边界封装
Tuple:元组
提供各种工具封装
xyz:做好一切必要准备,可以行动了
-
Uses of Fields.Units in org.miaixz.bus.core.center.date
Methods in org.miaixz.bus.core.center.date with parameters of type Fields.UnitsModifier and TypeMethodDescriptionlongBetween.between(Fields.Units unit) 判断两个日期相差的时长 返回 给定单位的时长差longDateTime.between(Date date, Fields.Units unit) 计算相差时长DateTime.between(Date date, Fields.Units unit, FormatPeriod.Level formatLevel) 计算相差时长Between.toString(Fields.Units unit, FormatPeriod.Level level) 格式化输出时间差 -
Uses of Fields.Units in org.miaixz.bus.core.lang
Methods in org.miaixz.bus.core.lang that return Fields.UnitsModifier and TypeMethodDescriptionstatic Fields.UnitsFields.Units.of(ChronoUnit unit) 单位兼容转换,将ChronoUnit转换为对应的DateUnitstatic Fields.UnitsReturns the enum constant of this class with the specified name.static Fields.Units[]Fields.Units.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.miaixz.bus.core.lang with parameters of type Fields.UnitsModifier and TypeMethodDescriptionstatic ChronoUnitFields.Units.toChronoUnit(Fields.Units unit) 单位兼容转换,将DateUnit转换为对应的ChronoUnit -
Uses of Fields.Units in org.miaixz.bus.core.xyz
Methods in org.miaixz.bus.core.xyz with parameters of type Fields.UnitsModifier and TypeMethodDescriptionstatic longDateKit.between(Date beginDate, Date endDate, Fields.Units unit) 判断两个日期相差的时长,只保留绝对值static longDateKit.between(Date beginDate, Date endDate, Fields.Units unit, boolean isAbs) 判断两个日期相差的时长