java中当前系统时间+1分钟

-5 java string parsing

我使用以下条件将当前系统时间作为开始时间和明天时间作为我的跟踪日志项目中的停止时间.但是现在我想要starttime应该是当前系统时间的+ 1分钟.任何人都可以帮忙吗?

SimpleDateFormat date_format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
String startTime=date_format.format(new Date());
String tomorrowTime=date_format.format(new Date(new Date().getTime()+(1000*60*60*24)));
Run Code Online (Sandbox Code Playgroud)

谢谢

Jos*_*efN 6

Calendar cal = Calendar.getInstance();
cal.add(Calendar.MINUTE, 1);

Date currentTimePlusOneMinute = cal.getTime();
Run Code Online (Sandbox Code Playgroud)