Browse Source

代码修改

LAPTOP-KB9HII50\70708 1 year ago
parent
commit
3fe40e278d

+ 5 - 0
common/common-util/src/main/java/com/yihu/jw/util/date/DateUtil.java

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