20 lines
446 B
Java
20 lines
446 B
Java
package com.engine.kq.jucailin.util;
|
|
|
|
import java.sql.Date;
|
|
import java.sql.Timestamp;
|
|
|
|
public class KQDateUtil {
|
|
|
|
public static Date getUpdateDate(){
|
|
Long now = System.currentTimeMillis();
|
|
Date date = new Date(now);
|
|
return date;
|
|
}
|
|
|
|
public static Timestamp getUpdateTimeStamp(){
|
|
Long now = System.currentTimeMillis();
|
|
Timestamp timestamp = new Timestamp(now);
|
|
return timestamp;
|
|
}
|
|
}
|