Android examples for java.util:Calendar
get Time After In Seconds
import java.util.Calendar; public class Main{ public static Calendar getTimeAfterInSecs(int secs) { Calendar cal = Calendar.getInstance(); cal.add(Calendar.SECOND, secs); return cal; }//from ww w . java 2s . c o m }