Android 获取当前时间函数

public static String getVoiceFileName() {
long getNowTimeLong = System.currentTimeMillis();
SimpleDateFormat time = new SimpleDateFormat(“yyyy-MM-dd-HH-mm-ss:SSS-E-F”);
String result = time.format(getNowTimeLong);
return result;
}

猜你喜欢

转载自blog.csdn.net/qq_27256793/article/details/78973308
今日推荐