Here you can find the source of getStringFromMillis(long timestamp)
public static String getStringFromMillis(long timestamp)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.util.Date; public class Main { public static String getStringFromMillis(long timestamp) { DateFormat df = DateFormat.getDateTimeInstance(); return df.format(new Date(timestamp)); }/*from www. j a va 2s . com*/ }