Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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());
 
PREVIOUS NEXT
Tagged: #add #seconds #today #date #time #java
ADD COMMENT
Topic
Name
5+6 =