Here you can find the source of prettyPrintDate(long timestamp)
public static String prettyPrintDate(long timestamp)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private final static SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss"); public static String prettyPrintDate(long timestamp) { return sdf.format(new Date(timestamp)); }/*from ww w . j a v a2s . c o m*/ }