Java java.util SimpleTimeZone fields, constructors, methods, implement or subclass

Example usage for Java java.util SimpleTimeZone fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util SimpleTimeZone.

The text is from its open source code.

Field

intUTC_TIME
Constant for a mode of start or end time specified as UTC.

Constructor

SimpleTimeZone(int rawOffset, String ID)
Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule.
SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime, int dstSavings)
Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

Method

Objectclone()
Returns a clone of this SimpleTimeZone instance.
booleanequals(Object obj)
Compares the equality of two SimpleTimeZone objects.
StringgetDisplayName()
Returns a long standard time name of this TimeZone suitable for presentation to the user in the default locale.
intgetDSTSavings()
Returns the amount of time in milliseconds that the clock is advanced during daylight saving time.
intgetOffset(long date)
Returns the offset of this time zone from UTC at the given time.
intgetOffset(int era, int year, int month, int day, int dayOfWeek, int millis)
Returns the difference in milliseconds between local time and UTC, taking into account both the raw offset and the effect of daylight saving, for the specified date and time.
intgetRawOffset()
Gets the GMT offset for this time zone.
inthashCode()
Generates the hash code for the SimpleDateFormat object.
booleanhasSameRules(TimeZone other)
Returns true if this zone has the same rules and offset as another zone.
booleaninDaylightTime(Date date)
Queries if the given date is in daylight saving time.
booleanobservesDaylightTime()
Returns true if this SimpleTimeZone observes Daylight Saving Time.
voidsetDSTSavings(int millisSavedDuringDST)
Sets the amount of time in milliseconds that the clock is advanced during daylight saving time.
voidsetEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime, boolean after)
Sets the daylight saving time end rule to a weekday before or after the given date within a month, e.g., the first Monday on or after the 8th.
voidsetEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime)
Sets the daylight saving time end rule.
voidsetRawOffset(int offsetMillis)
Sets the base time zone offset to GMT.
voidsetStartRule(int startMonth, int startDay, int startDayOfWeek, int startTime, boolean after)
Sets the daylight saving time start rule to a weekday before or after the given date within a month, e.g., the first Monday on or after the 8th.
voidsetStartRule(int startMonth, int startDay, int startDayOfWeek, int startTime)
Sets the daylight saving time start rule.
voidsetStartRule(int startMonth, int startDay, int startTime)
Sets the daylight saving time start rule to a fixed date within a month.
voidsetStartYear(int year)
Sets the daylight saving time starting year.
StringtoString()
Returns a string representation of this time zone.
booleanuseDaylightTime()
Queries if this time zone uses daylight saving time.