@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);
}
转载于:https://my.oschina.net/u/221120/blog/740235