SimpleTimeZone.setStartRule
Class Overview | Class Members |
This Package |
All Packages
public void setStartRule( int month,
int dayOfWeekInMonth,
int dayOfWeek,
int time )
Parameters
- month
- the daylight savings starting month. Month is 0-based.
eg, 0 for January.
- dayOfWeekInMonth
- the daylight savings starting
day-of-week-in-month. Please see the member description for an example.
- dayOfWeek
- the daylight savings starting day-of-week. Please see
the member description for an example.
- time
- the daylight savings starting time. Please see the member
description for an example.
Description
Sets the daylight savings starting rule. For example, Daylight Savings
Time starts at the first Sunday in April, at 2 AM in standard time.
Therefore, you can set the start rule by calling:
setStartRule(TimeFields.APRIL, 1, TimeFields.SUNDAY, 2*60*60*1000);