1、
System.out.println( System.currentTimeMillis() );
2、
Date date = new Date();
System.out.println( date.getTime() );
3、
Calendar calendar = Calendar.getInstance();
long time = calendar.getTimeInMillis();
System.out.println(time);
1、
System.out.println( System.currentTimeMillis() );
2、
Date date = new Date();
System.out.println( date.getTime() );
3、
Calendar calendar = Calendar.getInstance();
long time = calendar.getTimeInMillis();
System.out.println(time);