java获取系统时间的封装方法

来源:互联网 发布:模拟驾驶器软件 编辑:程序博客网 时间:2024/06/07 13:07
/**
* 获取系统时间
**/
public static Timestamp getCurrentTime(){
long longNow = System.currentTimeMillis();
return new Timestamp(longNow);
}
0 0