摘要: //获取系统当前时间String time = null;DateFormat dateFormat = new SimpleDateFormat();time = dateFormat.format(Calendar.getInstance().getTime());System.out.println(time);SimpleDateFormat函数语法:常见标准的写法"yyyy-MM-dd HH:mm:ss",注意大小写,时间是24小时制,24小时制转换成12小时制只需将HH改成hh,不需要另外的函数。DateFormat format1 = new SimpleDa 阅读全文
posted @ 2011-03-30 16:14 0707 阅读(10201) 评论(0) 推荐(0) 编辑