时间类

来源:互联网 发布:windows监控文件变化 编辑:程序博客网 时间:2024/06/06 19:35
SimpleDateFormat time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");Date curDate = new Date(System.currentTimeMillis());long sytime=0;try {   sytime=curDate.getTime()-time.parse(order.getCreateTime()).getTime();} catch (ParseException e) {   e.printStackTrace();}
0 0
原创粉丝点击