Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
罗孟伟 committed Dec 2, 2019
1 parent d5977ca commit eb7773a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

public class DateUtils {
private static SimpleDateFormat sf = new SimpleDateFormat("yyyyMMdd_HHmmssSS");

/**
* 判断两个时间戳相差多少秒
Expand Down Expand Up @@ -50,7 +51,6 @@ public static String formatDurationTime(long duration) {
* @return
*/
public static String getCreateFileName(String prefix) {
SimpleDateFormat sf = new SimpleDateFormat("yyyyMMdd_HHmmss");
long millis = System.currentTimeMillis();
return prefix + sf.format(millis);
}
Expand Down

0 comments on commit eb7773a

Please sign in to comment.