get Time After In Seconds - Android java.util

Android examples for java.util:Calendar

Description

get Time After In Seconds

Demo Code

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

}

Related Tutorials