Time time = new Time();
time.setToNow();
int year = time.year;
int month = time.month;
int day = time.monthDay;
int minute = time.minute;
int hour = time.hour;
int sec = time.second;
Log.i("www","当前时间为:" + year + "年 " + month + "月 " + day +
"日 " + hour + "时 " + minute + "分 " + sec + "秒");
time.setToNow();
int year = time.year;
int month = time.month;
int day = time.monthDay;
int minute = time.minute;
int hour = time.hour;
int sec = time.second;
Log.i("www","当前时间为:" + year + "年 " + month + "月 " + day +
"日 " + hour + "时 " + minute + "分 " + sec + "秒");