Java Utililty Methods Long Number to Timestamp

List of utility methods to do Long Number to Timestamp

Description

The list of methods to do Long Number to Timestamp are organized into topic(s).

Method

StringunixTimestampToDate(long timestamp)
unix Timestamp To Date
SimpleDateFormat sd = new SimpleDateFormat(DATE_FULL_STR);
sd.setTimeZone(TimeZone.getTimeZone("GMT+8"));
return sd.format(new Date(timestamp));
StringunixToDate(final long timestamp)
unixToDate
SimpleDateFormat sdf = new SimpleDateFormat("MMMM d, yyyy 'at' h:mm a");
String date = sdf.format(timestamp);
return date.toString();