取得系统时间 1. long time=System.currentTimeMillis(); 2. final Calendar mCalendar=Calendar.getInstance(); mCalendar.setTimeInMillis(time); 取得小时:mHour=mCalendar.get(Calendar.HOUR); 取得分钟:mMinuts=mCalendar.get(Calendar.MINUTE); 3. Time t=new Time(); // or Tim
一 : 修改Android系统默认时间 源码路径:frameworks/base/services/java/com/android/server/SystemServer.java 主要变量EARLIEST_SUPPORTED_TIME // The earliest supported time. We pick one day into 1970, to // give any timezone code room without going into negative time. pri