Class FormatPeriod

java.lang.Object
org.miaixz.bus.core.center.date.format.FormatPeriod
All Implemented Interfaces:
Serializable

public class FormatPeriod extends Object implements Serializable
时长格式化器,用于格式化输出两个日期相差的时长 根据FormatPeriod.Level不同,调用format()方法后返回类似于:
  • XX小时XX分XX秒
  • XX天XX小时
  • XX月XX天XX小时
Since:
Java 17+
Author:
Kimi Liu
See Also: