Android獲取當前時間的android.text.format.Time已過期

以前使用的java Time time = new android.text.format.Time(); time.setToNow(); String timeNow = time.format("%Y%m%d%H%M%S"); 來獲取當前時間,可是在android22中提示過期 deprecatedandroid 而後找了下,實在不知道用哪一個好,只好試試這個ide Calendar cal
相關文章
相關標籤/搜索