SimpleTimeZone.SimpleTimeZone
Class Overview | Class Members |
This Package |
All Packages
public SimpleTimeZone( int rawOffset,
String ID )
Parameters
- rawOffset
- the given base time zone offset to GMT.
- ID
- the time zone ID which is obtained from
TimeZone.getAvailableIDs.
Description
Constructs a SimpleTimeZone with the given base time zone offset
from GMT and time zone ID. Timezone IDs can be obtained from
TimeZone.getAvailableIDs. Normally you should use TimeZone.getDefault
to construct a TimeZone.
public SimpleTimeZone( int rawOffset,
String ID,
int startMonth,
int startDayOfWeekInMonth,
int startDayOfWeek,
int startTime,
int endMonth,
int endDayOfWeekInMonth,
int endDayOfWeek,
int endTime )
Parameters
- rawOffset
- the given base time zone offset to GMT.
- ID
- the time zone ID which is obtained from
TimeZone.getAvailableIDs.
- startMonth
- the daylight savings starting month. Month is 0-based.
eg, 0 for January.
- startDayOfWeekInMonth
- the daylight savings starting
day-of-week-in-month. Please see the member description for an example.
- startDayOfWeek
- the daylight savings starting day-of-week.
Please see the member description for an example.
- startTime
- the daylight savings starting time. Please see the
member description for an example.
- endMonth
- the daylight savings ending month. Month is 0-based.
eg, 0 for January.
- endDayOfWeekInMonth
- the daylight savings ending
day-of-week-in-month. Please see the member description for an example.
- endDayOfWeek
- the daylight savings ending day-of-week. Please see
the member description for an example.
- endTime
- the daylight savings ending time. Please see the member
description for an example.
Description
Constructs a SimpleTimeZone with the given base time zone offset
from GMT, time zone ID, time to start and end the daylight time.
Timezone IDs can be obtained from TimeZone.getAvailableIDs.
Normally you should use TimeZone.getDefault to create a TimeZone.
For a time zone that does not use daylight saving time, do not
use this constructor; instead you should use
SimpleTimeZone(rawOffset, ID).