Date转为Long的方法

    Long time = System.currentTimeMillis();
    Date time1
= new  Date();
    Long tmp
= time1.getTime();
    

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

你可能感兴趣的:(Date)