android 得到格式化時間字符串

@SuppressLint("SimpleDateFormat")
	public static String GetTime() {
		Date date = new Date(System.currentTimeMillis());
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return format.format(date);
	}
相關文章
相關標籤/搜索