Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getRealTime(int unixTime) { Date now = new Date((unixTime) * 1000L); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm"); return sdf.format(now); } }