【发布时间】:2009-10-31 19:30:35
【问题描述】:
我正在查看日期 documentation 并试图弄清楚我如何表达现在 + 5 秒。这是一些伪代码:
import java.util.Date
public class Main {
public static void main(String args[]) {
Date now = new Date();
now.setSeconds(now.getSeconds() + 5);
}
}
【问题讨论】: