I have created a countdown timer, and I want to display the time left in my GUI. I would like it to be displayed as hh:mm:ss. I can't think of how to do this.
Date works as miliseconds since 1970. The GregorianCalendar stores a full date. If I could insure days won't be used (I'm not sure I can, but lets suppose for a moment), then maybe I could create a GregorianCalendar instance and use military time and set the time left as the time since midnight. Still, this seems wrong.
Does anyone know an easy way to do this, or do I need to write a special parser to convert seconds into my desired
String format?
--Mark