List of utility methods to do Second Convert
String | unixtimeToString(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); |