DCT Lightfoot v3 API specification

com.dctl.j2me.util
Class ComplexTimeZone

java.lang.Object
  |
  +--java.util.TimeZone
        |
        +--com.dctl.j2me.util.ComplexTimeZone

public abstract class ComplexTimeZone
extends TimeZone

This is the Comeplex Implementation of TimeZone.java


Field Summary
 
Fields inherited from class java.util.TimeZone
GMT, VALID_TZ
 
Constructor Summary
ComplexTimeZone()
          Create a new SimpleTimeZone (GMT)
 
Method Summary
abstract  java.lang.String getID()
          Get the ID of this time zone
abstract  int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis)
          Get the offset to add to GMT to get the local time.
abstract  int getRawOffset()
          Get the raw offset for this time zone
abstract  void initTimeZoneData(java.lang.String ID)
           
abstract  boolean useDaylightTime()
          Does this time zone use daylight savings time
 
Methods inherited from class java.util.TimeZone
getAvailableIDs, getDefault, getTimeZone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexTimeZone

public ComplexTimeZone()
Create a new SimpleTimeZone (GMT)

Method Detail

getID

public abstract java.lang.String getID()
Get the ID of this time zone

Specified by:
getID in class TimeZone
Returns:
the ID

getOffset

public abstract int getOffset(int era,
                              int year,
                              int month,
                              int day,
                              int dayOfWeek,
                              int millis)
Get the offset to add to GMT to get the local time.

Specified by:
getOffset in class TimeZone
Parameters:
era - The era of the date (0 = BC, 1 = AD)
year - The year of the given date
month - The month of the given date
day - The day of the month of the given date
dayOfWeek - The day of the week of the given date
millis - The milliseconds in the day in standard local time
Returns:
The offset to add to GMT to get local time
Throws:
IllegalArgumentException - if any of the parameters are out of range

getRawOffset

public abstract int getRawOffset()
Get the raw offset for this time zone

Specified by:
getRawOffset in class TimeZone
Returns:
the GMT offset for this time zone

useDaylightTime

public abstract boolean useDaylightTime()
Does this time zone use daylight savings time

Specified by:
useDaylightTime in class TimeZone
Returns:
true if it does

initTimeZoneData

public abstract void initTimeZoneData(java.lang.String ID)

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification