Here you can find the source of addDays(int count, Calendar timestamp)
Parameter | Description |
---|---|
count | The quantity to change, can be negative. |
timestamp | The calendar to modify. |
public static Calendar addDays(int count, Calendar timestamp)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**/*w ww . j a va2s .co m*/ * Adds or subtracts the corresponding time field, does not * perform any alignment. * @param count The quantity to change, can be negative. * @param timestamp The calendar to modify. * @return The timestamp parameter. */ public static Calendar addDays(int count, Calendar timestamp) { timestamp.add(Calendar.DATE, count); return timestamp; } }