get Time After In Seconds via Calendar - Android java.util

Android examples for java.util:Calendar

Description

get Time After In Seconds via Calendar

Demo Code


//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*/
}

Related Tutorials