Answers for "add seconds to today date and time 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 "add seconds to today date and time java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language