int nowHour = m_date.getHours(); 其中getHours();是不推荐使用的方法....
原文出自API_5.0 -------------------------------------------------------------------------------------------------- int getHours() Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.HOUR_OF_DAY). ----------------------------------------------------------------------------------------------------