正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
@@ -530,11 +530,10 @@ public final class DateUtil { | @@ -530,11 +530,10 @@ public final class DateUtil { | ||
530 | * @return | 530 | * @return |
531 | * @throws ParseException | 531 | * @throws ParseException |
532 | */ | 532 | */ |
533 | - public Date dateTimeAddfifteen(Date date) throws ParseException { | 533 | + public static Date dateTimeAddfifteen(Date date) throws ParseException { |
534 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | 534 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
535 | 535 | ||
536 | Calendar nowTime = Calendar.getInstance(); | 536 | Calendar nowTime = Calendar.getInstance(); |
537 | - | ||
538 | nowTime.setTime(date); | 537 | nowTime.setTime(date); |
539 | nowTime.add(Calendar.MINUTE, 15); | 538 | nowTime.add(Calendar.MINUTE, 15); |
540 | Date time = nowTime.getTime(); | 539 | Date time = nowTime.getTime(); |
-
请 注册 或 登录 后发表评论