//Convert Unix timestamp to normal date style
public String TimeStamp2Date(String timestampString){
Long timestamp = Long.parseLong(timestampString)*1000;
String date = new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new java.util.Date(timestamp));
return date;
}
Java将Unix时间戳转换成普通日期型的函数
最新推荐文章于 2024-03-25 10:58:16 发布