List of utility methods to do Long Number to Timestamp
String | unixTimestampToDate(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)); |
String | unixToDate(final long timestamp) unixToDate SimpleDateFormat sdf = new SimpleDateFormat("MMMM d, yyyy 'at' h:mm a"); String date = sdf.format(timestamp); return date.toString(); |