Android 獲取系統時間及時間戳轉換

//獲取當前時間戳 long timeStamp = System.currentTimeMillis(); String time = stampToDate(timeStamp); Log.d("xxxxx", time); //獲取當前時間 Calendar c = Calendar.getInstance();//能夠對每一個時間域單獨修改 int year = c.get(Calenda
相關文章
相關標籤/搜索