Here you can find the source of timeFormatToString(int paramInt)
public static String timeFormatToString(int paramInt)
//package com.java2s; public class Main { public static String timeFormatToString(int paramInt) { StringBuffer localStringBuffer = new StringBuffer(); int i = paramInt / 1000; int j = i / 3600; int l;/* w w w . ja va 2 s . c o m*/ int i1; if (j >= 10) { localStringBuffer.append(j); } else { localStringBuffer.append("0").append(j); } int k = i % 3600; l = k / 60; if (l < 10) { localStringBuffer.append(":0").append(l); } else { localStringBuffer.append(":").append(l); } i1 = k % 60; if (i1 < 10) { localStringBuffer.append(":0").append(i1); } else { localStringBuffer.append(":").append(i1); } return localStringBuffer.toString(); } }