Here you can find the source of elapsedTimeToString(long elapsedTime)
public static String elapsedTimeToString(long elapsedTime)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; public class Main { public static String elapsedTimeToString(long elapsedTime) { Date date = new Date(elapsedTime); DateFormat formatter = new SimpleDateFormat("HH:mm:ss"); formatter.setTimeZone(TimeZone.getTimeZone("GMT")); return formatter.format(date); }//from www. j av a 2s. c o m }