取出var适配jdk1.8
parent
2105e09204
commit
3f8c99bc70
|
@ -12,7 +12,7 @@ import java.util.Date;
|
||||||
public class DateUtils {
|
public class DateUtils {
|
||||||
private static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
|
private static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
|
||||||
public static String getNow(){
|
public static String getNow(){
|
||||||
var sdf = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS);
|
SimpleDateFormat sdf = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS);
|
||||||
return sdf.format(new Date());
|
return sdf.format(new Date());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue