转载自博客园-yqy2011
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(tim
estamp));
return date;
}
例如:
当调用TimeStamp2Date("1252639886"); 返回值:11/09/2009 11:31:26
网友评论