Here you can find the source of formatRawDateTime(int unixtime)
public static String formatRawDateTime(int unixtime)
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { static final DateFormat DATE_TIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public static String formatRawDateTime(int unixtime) { return DATE_TIME_FORMAT.format(new Date(unixtime * 1000L)); }/*from w w w .ja v a2 s .c om*/ }