Java在当前时间的基础上增加N时间

long currentTime = System.currentTimeMillis() +想要增加的时间毫秒数;

Date date = new Date(currentTime);

猜你喜欢

转载自www.cnblogs.com/IceBlueBrother/p/11504515.html