[ server] [ agent ] - 版本信息全流程-完成
This commit is contained in:
@@ -70,6 +70,21 @@ public class TimeUtils {
|
||||
return LocalDateTime.now(SYSTEM_TIME_ZONE_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 格式化 去掉时间中的毫秒数
|
||||
*/
|
||||
public static LocalDateTime currentFormatTime() {
|
||||
|
||||
DateTimeFormatter ofPattern = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
String format = LocalDateTime
|
||||
.now(SYSTEM_TIME_ZONE_ID)
|
||||
.format(ofPattern);
|
||||
|
||||
return LocalDateTime.parse(format, ofPattern);
|
||||
|
||||
}
|
||||
|
||||
public static LocalDateTime cvFromDate(Date date) {
|
||||
|
||||
// fix bug
|
||||
|
||||
Reference in New Issue
Block a user