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

你可能感兴趣的:(linux)