摘要: import java.text.SimpleDateFormat; SimpleDateFormat formatter = new SimpleDateFormat ("yyyy年MM月dd日 HH:mm:ss "); Date curDate = new Date(System.currentTimeMillis());//获取当前时间 String str = formatter.format(curDate); 可以获取当前的年月时分,也可以分开写:Sim... 阅读全文
posted @ 2013-06-19 16:59 似水流云 阅读(367) 评论(0) 推荐(0) 编辑