code: public static String formatTimeText(int millis){
          // Format the milliseconds into the form - 'hh:mm:ss'
          return String.format(Locale.US, "%02d:%02d:%02d",
                  TimeUnit.MILLISECONDS.toHours(millis),
                  TimeUnit.MILLISECONDS.toMinutes(millis) -
                          TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),
                  TimeUnit.MILLISECONDS.toSeconds(millis) -
                          TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)));
      }
docs: Format a time in milliseconds to 'hh:mm:ss' format
  
  @param millis		the milliseconds time
  @return				the time in 'hh:mm:ss' format