What is the SimpleTimeZone class?
- SimpleTimeZone is a concrete subclass of TimeZone class. The TimeZone class represents a time zone, that is to be used with a Gregorian calendar.
- The SimpleTimeZone is created by using the base time zone offset from GMT time zone ID and rules, for starting and ending the time of daylight.
- SimpleTimeZone is a subclass of TimeZone.
- It represents a time zone for use with a Gregorian calendar.
- It class does not handle historical changes.
SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregorian calendar. The class holds an offset from GMT, called raw offset, and start and end rules for a daylight saving time schedule. Since it only holds single values for each, it cannot handle historical changes in the offset from GMT and the daylight saving schedule, except that the setStartYear method can specify the year when the daylight saving time schedule starts in effect.
To construct a SimpleTimeZone with a daylight saving time schedule, the schedule can be described with a set of rules, start-rule and end-rule. A day when daylight saving time starts or ends is specified by a combination of month, day-of-month, and day-of-week values. The month value is represented by a Calendar MONTH field value, such as Calendar.MARCH. The day-of-week value is represented by a Calendar DAY_OF_WEEK value, such as SUNDAY. The meanings of value combinations are as follows.
SimpleTimeZone is a solid subclass of TimeZone that speaks to a period zone for use with a Gregorian date-book. The class holds a balance from GMT, called crude balance, and begin and end rules for a sunlight sparing time plan. Since it just holds single qualities for every, it can't deal with recorded changes in the counterbalance from GMT and the light sparing calendar, aside from that the setStartYear technique can indicate the year when the sunshine sparing time plan begins basically.