Answers for "current time - 1 sec in java"

0

add seconds to today date and time java

Calendar calendar = Calendar.getInstance(); // gets a calendar using the default time zone and locale.
calendar.add(Calendar.SECOND, 5);
System.out.println(calendar.getTime());
Posted by: Guest on June-24-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language