Here you can find the source of timestampConvertToString(int timeStamp, String format)
public static final String timestampConvertToString(int timeStamp, String format)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String timestampConvertToString(int timeStamp, String format) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format); long lTime = Long.valueOf(timeStamp); return simpleDateFormat.format(new Date(lTime * 1000)); }// w w w . ja v a 2 s.c om }