import java.util.*;
int y,m,d,h,mi,s;    
Calendar cal=Calendar.getInstance();    
y=cal.get(Calendar.YEAR);    
m=cal.get(Calendar.MONTH);    
d=cal.get(Calendar.DATE);    
h=cal.get(Calendar.HOUR_OF_DAY);    
mi=cal.get(Calendar.MINUTE);    
s=cal.get(Calendar.SECOND); 
System.out.println("The current time is:"+y+"/"+m+"/"+d+"/"+h+"/"+mi+"/"+s+"/"); 
vars.put("Date",m+"/"+d+"/"+y);

 

相关文章:

  • 2022-01-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案