1、获取13位长度的时间戳
long lTime = System.currentTimeMillis();
2、获取系统当前时间
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
return df.format(new Date());
转载于:https://blog.51cto.com/9070303/1540460
1、获取13位长度的时间戳
long lTime = System.currentTimeMillis();
2、获取系统当前时间
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
return df.format(new Date());
转载于:https://blog.51cto.com/9070303/1540460