Menu

#5 problem with formatting negative period

open
nobody
None
5
2012-10-08
2011-03-10
No

I'm trying to format negative period with formatter built with
new PeriodFormatterBuilder().appendHours().appendSeparatorIfFieldsBefore(":").printZeroAlways().minimumPrintedDigits(2).appendMinutes().toFormatter();

the problem is, if period is negative I get something like -6:-23
minus sign should be only added before first field or explicitly with something like appendSignIfNegative()

Discussion

Anonymous
Anonymous

Add attachments
Cancel