Date转为Long的方法
Long time=System.currentTimeMillis();
Date time1=new Date();
Long tmp=time1.getTime();
System.out.println("currentTimeMillis="+time);
System.out.println("time1="+tmp);
Long time=System.currentTimeMillis();
Date time1=new Date();
Long tmp=time1.getTime();
System.out.println("currentTimeMillis="+time);
System.out.println("time1="+tmp);
暂无评论。
评论功能维护中,当前仅展示历史评论。