将long类型的变量转换为固定格式的日期输出
public static String unixTimestamp2Str(long epoch){
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
sdf.setTimeZone(TimeZone.getTimeZone("GMT+08:00"));
Date theDate = new Date(epoch);
return (sdf.format(theDate));
}