Package org.broadleafcommerce.common.web
Class TimeZoneWrapper
java.lang.Object
java.util.TimeZone
org.broadleafcommerce.common.web.TimeZoneWrapper
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
static String[]
static String[]
getAvailableIDs
(int rawOffset) static TimeZone
getDisplayName
(boolean daylight, int style, Locale locale) int
getID()
int
getOffset
(int era, int year, int month, int day, int dayOfWeek, int milliseconds) int
getOffset
(long date) int
static TimeZone
getTimeZone
(String ID) static TimeZone
getTimeZone
(ZoneId zoneId) boolean
hasSameRules
(TimeZone other) boolean
inDaylightTime
(Date date) boolean
static void
setDefault
(TimeZone zone) void
void
setRawOffset
(int offsetMillis) toString()
toZoneId()
boolean
Methods inherited from class java.util.TimeZone
getDisplayName, getDisplayName, getDisplayName
-
Constructor Details
-
TimeZoneWrapper
-
-
Method Details
-
getTimeZone
-
getTimeZone
-
getAvailableIDs
-
getAvailableIDs
-
getDefault
-
setDefault
-
getOffset
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) -
getOffset
public int getOffset(long date) -
getRawOffset
public int getRawOffset()- Specified by:
getRawOffset
in classTimeZone
-
setRawOffset
public void setRawOffset(int offsetMillis) - Specified by:
setRawOffset
in classTimeZone
-
getID
-
setID
-
getDisplayName
- Overrides:
getDisplayName
in classTimeZone
-
getDSTSavings
public int getDSTSavings()- Overrides:
getDSTSavings
in classTimeZone
-
useDaylightTime
public boolean useDaylightTime()- Specified by:
useDaylightTime
in classTimeZone
-
observesDaylightTime
public boolean observesDaylightTime()- Overrides:
observesDaylightTime
in classTimeZone
-
inDaylightTime
- Specified by:
inDaylightTime
in classTimeZone
-
toZoneId
-
hasSameRules
- Overrides:
hasSameRules
in classTimeZone
-
clone
-
toString
-