Date转为Long的方法

来源:互联网 发布:淘宝自然流量包括什么 编辑:程序博客网 时间:2024/05/01 13:00
    Long time=System.currentTimeMillis();
    Date time1
=new Date();
    Long tmp
=time1.getTime();
    

    System.out.println("currentTimeMillis="+time);
    System.out.println(
"time1="+tmp);