Hi,
I have a question regarding the following code:
-----------------------------------------------
// The desired format is hh:mm:ss
PeriodFormatter pf = new PeriodFormatterBuilder()
.minimumPrintedDigits(2)
.printZeroIfSupported()
.appendHours()
.appendSeparator(":")
.appendMinutes()
.appendSeparator(":")
.appendSeconds()
.toFormatter();
MutablePeriod period = new MutablePeriod(0);
Period p1 = pf.parsePeriod("00:00:40");
period.add(p1);
Period p2 = pf.parsePeriod("00:00:30");
period.add(p2);
// This will print 00:00:70
System.out.println(pf.print(period));
-----------------------------------------------
how can I have 00:01:10 instead of 00:00:70 ?
thanks!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest