java获取取得Timestamp类型的当前系统时间
格式:2010-11-04 16:19:42
方法1:
方法1:
Timestamp d = new Timestamp(System.currentTimeMillis());
方法2:
Date date = new Date();
Timestamp nousedate = new Timestamp(date.getTime());
Timestamp nousedate = new Timestamp(date.getTime());