给定毫秒值1414381913000L
public class demo { public static void main(String[] args) { long milliSecond = 1414381913000L; Date date = new Date(); date.setTime(milliSecond); System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:ss:mm").format(date)); } }
给定毫秒值1414381913000L
public class demo { public static void main(String[] args) { long milliSecond = 1414381913000L; Date date = new Date(); date.setTime(milliSecond); System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:ss:mm").format(date)); } }