Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class Main { public static String getTime(Long timestamp) { SimpleDateFormat sdf = new SimpleDateFormat("HH:mm", Locale.getDefault()); sdf.setTimeZone(TimeZone.getTimeZone("GMT+0")); Date date = new Date(timestamp * 1000); sdf.format(date); return sdf.format(date); } }