Java Utililty Methods Second Convert

List of utility methods to do Second Convert

Description

The list of methods to do Second Convert are organized into topic(s).

Method

StringunixtimeToString(long unixSeconds)
Returns human-readable time string.
long unixMilliseconds = unixSeconds * 1000L;
Date date = new java.util.Date(unixMilliseconds);
SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
sdf.setTimeZone(java.util.TimeZone.getTimeZone("Europe/Berlin"));
return sdf.format(date);