📜  将秒添加到今天的日期和时间 java 代码示例

📅  最后修改于: 2022-03-11 14:52:02.896000             🧑  作者: Mango

代码示例1
Calendar calendar = Calendar.getInstance(); // gets a calendar using the default time zone and locale.
calendar.add(Calendar.SECOND, 5);
System.out.println(calendar.getTime());