Android examples for java.util:Calendar
get Time After In Seconds via Calendar
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar getTimeAfterInSecs(int secs) { Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.SECOND, secs); return calendar; }/*from w w w . j av a 2 s . c o m*/ }