GregorianCalendar.add

GregorianCalendar.add

Class Overview | Class Members | This Package | All Packages

Syntax
public void add( int field, int amount )
Parameters
field
the time field.
amount
the amount of date or time to be added to the field.
Description
Overrides Calendar Date Arithmetic function. Adds the specified (signed) amount of time to the given time field, based on the calendar's rules.

Exceptions
IllegalArgumentException if an unknown field is given.
Overrides
add in class Calendar