177178179180181182183184
private final PeriodFormatter defaultFormatter = PeriodFormat.getDefault() .withParseType(PeriodType.standard()); public String format() { Period period = new Period(millis()); return defaultFormatter.print(period); }
182183184185186187188189
Period period = new Period(millis()); return defaultFormatter.print(period); } public String format(PeriodType type) { Period period = new Period(millis()); return PeriodFormat.getDefault().withParseType(type).print(period); }