DCT Lightfoot v3 API specification

com.dctl.j2me.util
Class SimpleTimeZone

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

public class SimpleTimeZone
extends TimeZone

This is the Simple Implementation of TimeZone.java
Currently only supports GMT


Field Summary
 
Fields inherited from class java.util.TimeZone
GMT, VALID_TZ
 
Constructor Summary
SimpleTimeZone()
          Create a new SimpleTimeZone (GMT)
 
Method Summary
 java.lang.String getID()
          Get the ID of this time zone
 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.
 int getRawOffset()
          Get the raw offset for this time zone
 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

SimpleTimeZone

public SimpleTimeZone()
Create a new SimpleTimeZone (GMT)

Method Detail

getID

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

Specified by:
getID in class TimeZone
Returns:
the ID

getOffset

public 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 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 boolean useDaylightTime()
Does this time zone use daylight savings time

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

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification