Here you can find the source of formatTimestap(final long timestap)
public static String formatTimestap(final long timestap)
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.time.Instant; import java.util.Date; import java.util.Locale; public class Main { public static String formatTimestap(final long timestap) { return DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM, Locale.ENGLISH) .format(Date.from(Instant.ofEpochMilli(timestap))); }/* www. j a va 2s . c om*/ }