Android取得系统时间

Time t = new Time();//实例化Time类

t.setToNow();//取得当前的系统时间
int month = t.month;//获取月
int year = t.year;//获取年
int minute = t.minute;//获取分钟
int date = t.monthDay;//获取日
int hour = t.hour;//获取时

posted @ 2016-10-30 14:38  飞尽堂前燕  阅读(157)  评论(0编辑  收藏  举报