src/main/java/com/zandero/utils/InstantTimeUtils.java
public static String format(long time, DateTimeFormatter format) {

		return format(Instant.ofEpochMilli(time), format);
	}
public static String format(long time, DateTimeFormatter format) {

		return format(Instant.ofEpochMilli(time), format);
	}
public static String format ( long time , DateTimeFormatter format ) { return format ( Instant . ofEpochMilli ( time ) , format ) ; }
Custom date time format

@param time   to be formatted
@param format simple date time format, or null for default yyyy-MM-dd HH:mm:ss Z format
@return formated date time
Custom date time format