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);
	}
相关文章
相关标签/搜索