Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static String getTimeFromMillis(long time) { String curStringTime = new SimpleDateFormat("HH:mm:ss").format(time); return curStringTime; } }