日期:2014-05-16  浏览次数:20718 次

LINUX时间戳转换成日期

//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;  
}