public static String long2DateString(long time) {
String format = "yyyy-MM-dd HH:mm:ss";
SimpleDateFormat sf = new SimpleDateFormat(format);
Date date = new Date(time);
return sf.format(date);
}
long转日期字符串
最新推荐文章于 2023-08-28 17:18:21 发布
public static String long2DateString(long time) {
String format = "yyyy-MM-dd HH:mm:ss";
SimpleDateFormat sf = new SimpleDateFormat(format);
Date date = new Date(time);
return sf.format(date);
}