Calendar.set

Calendar.set

Class Overview | Class Members | This Package | All Packages

Syntax 1
public final void set( int field, int value )
Parameters
field
the given time field.
value
the value to be set for the given time field.
Description
Sets the time field with the given value.



Syntax 2
public final void set( int year, int month, int date )
Parameters
year
the value used to set the YEAR time field.
month
the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.
date
the value used to set the DATE time field.
Description
Sets the values for the fields year, month, and date.



Syntax 3
public final void set( int year, int month, int date, int hour, int minute )
Parameters
year
the value used to set the YEAR time field.
month
the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.
date
the value used to set the DATE time field.
hour
the value used to set the HOUR_OF_DAY time field.
minute
the value used to set the MINUTE time field.
Description
Sets the values for the fields year, month, date, hour, and minute.



Syntax 4
public final void set( int year, int month, int date, int hour, int minute, int second )
Parameters
year
the value used to set the YEAR time field.
month
the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.
date
the value used to set the DATE time field.
hour
the value used to set the HOUR_OF_DAY time field.
minute
the value used to set the MINUTE time field.
second
the value used to set the SECOND time field.
Description
Sets the values for the fields year, month, date, hour, minute, and second.