java.util.SimpleTimeZone
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.
Some methods of SimpleTimeZone class.
clone(): This method returns a clone of this SimpleTimeZone instance.
Some constants of SimpleTimeZone: SimpleTimeZone.STANDARD_TIME, SimpleTimeZone.UTC_TIME, etc.
equals(Object): This method compares the equality of two SimpleTimeZone objects.
getDisplayName(): This method returns a long standard time name of this TimeZone suitable for presentation to the user in the default locale.
getDisplayName(Locale): This method returns a long standard time name of this TimeZone suitable for presentation to the user in the specified locale.
getDisplayName(boolean, int): This method returns a name in the specified style of this TimeZone suitable for presentation to the user in the default locale.
getDisplayName(boolean, int, Locale): This method returns a name in the specified style of this TimeZone suitable for presentation to the user in the specified locale.
getDSTSavings(): This method returns the amount of time in milliseconds that the clock is advanced during daylight saving time.
getID(): This method gets the ID of this time zone.
getOffset(long): This method returns the offset of this time zone from UTC at the given time.
getOffset(int, int, int, int, int, int): This method 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.
getRawOffset(): This method gets the GMT offset for this time zone.
hashCode(): This method generates the hash code for the SimpleDateFormat object.
hasSameRules(TimeZone): This method returns true if this zone has the same rules and offset as another zone.
Some more methods of SimpleTimeZone
No comments:
Post a Comment