Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String TimeStampString(String style, String times) { SimpleDateFormat format = new SimpleDateFormat(style); long lcc_time = Long.valueOf(times); return format.format(new Date(lcc_time * 1000L)); } }