Here you can find the source of getDispTimeByUnixTime(long unixSec)
public static String getDispTimeByUnixTime(long unixSec)
//package com.java2s; //License from project: LGPL import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getDispTimeByUnixTime(long unixSec) { SimpleDateFormat sdf = new SimpleDateFormat("yy/MM/dd HH:mm:ss"); return sdf.format(new Date(unixSec * 1000)); }/*w w w .ja v a 2 s . co m*/ }