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