... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug in duration shown for my tracks
#13
(16.07.2009, 22:35)RsH Wrote: 1.28.4 exe version for windows starts up with the 18:00:00 showing and ends up with with 21:20:00 showing, so the quick answer is no...

Ok, that is a lot more difficult than I've thought. And the tips from various Internet sources don't point into the right direction. What worked for me is the following code sequence:

Quote:Calendar calendar = Calendar.getInstance();
calendar.clear();
calendar.add(Calendar.MILLISECOND, (int)milliSeconds);
Date date = calendar.getTime();
MessageFormat.format("{0,time,HH:mm:ss}", date);

Please try the 1.28.6 version?s
--
Christian
Reply


Messages In This Thread
Bug in duration shown for my tracks - by RsH - 02.07.2009, 16:38
java util Date without Timezone and Locale effects - by routeconverter - 19.07.2009, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)