时间戳与日期相互转换

public static String timeStamp2Date(Long seconds) {
if(null==seconds){
return "";
}
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Long time = new Long(seconds);
String d = format.format(time);
return d;
}
}

http://blog.csdn.net/heng615975867/article/details/36016617

原文地址:https://www.cnblogs.com/vinplezhang/p/5292316.html