Here you can find the source of addSeconds(Calendar calendar, int amount)
static public Calendar addSeconds(Calendar calendar, int amount)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { static public Calendar addSeconds(Calendar calendar, int amount) { return add(calendar, Calendar.SECOND, amount); }/*from www.jav a 2 s . c om*/ static public Calendar add(Calendar calendar, int calendarField, int amount) { Calendar c = Calendar.getInstance(); c.setTime(calendar.getTime()); c.add(calendarField, amount); return c; } }