Calendar.set
Class Overview | Class Members |
This Package |
All Packages
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.
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.
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.
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.