calendar.getTimeInMillis()获得的毫秒时间格式转化为yyyy-MM-dd样式的时间
String str = String.format("%tF %<tT", 1229159619623L);
String str = String.format("%tF %<tT", 1229159619623L);