|
@ -89,6 +89,11 @@ public class DateUtil {
|
|
return dateTimeFormatter.format(localDateTime);
|
|
return dateTimeFormatter.format(localDateTime);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static Date longToDate(long timestamp){
|
|
|
|
Instant instant = Instant.ofEpochSecond(timestamp);
|
|
|
|
return Date.from(instant);
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 时间格式转中文格式
|
|
* 时间格式转中文格式
|
|
*/
|
|
*/
|