摘要: 要得到系统时间,可以通过calendar简单的做到calendar 是定义在 java 中的所以使用之前需要导入包 java.util.Calendar得到系统的时间,只要通过简单的一步 Calendar c = Calendar.getInstance(); mYear = c.get(Calendar.YEAR); mMonth = c.get(Calendar.MONTH); mDay = c.get(Calendar.DAY_OF_MONTH); mHour = c.get(Calendar.HOUR_OF_DAY)... 阅读全文
posted @ 2012-06-29 21:11 MonkeyDLky 阅读(385) 评论(1) 推荐(1) 编辑