Here you can find the source of getStandardTime(long timestamp)
public static String getStandardTime(long timestamp)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getStandardTime(long timestamp) { SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/HH:mm"); Date date = new Date(timestamp * 1000); sdf.format(date);//from w ww .j av a2 s . c o m return sdf.format(date); } }