Package org.apache.commons.lang3.time
Class GmtTimeZone
- java.lang.Object
-
- java.util.TimeZone
-
- org.apache.commons.lang3.time.GmtTimeZone
-
- All Implemented Interfaces:
Serializable,Cloneable
class GmtTimeZone extends TimeZone
Custom time zone that contains offset from GMT.- Since:
- 3.7
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description GmtTimeZone(boolean negate, int hours, int minutes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetID()intgetOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)intgetRawOffset()inthashCode()booleaninDaylightTime(Date date)voidsetRawOffset(int offsetMillis)StringtoString()booleanuseDaylightTime()-
Methods inherited from class java.util.TimeZone
clone, getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getDSTSavings, getOffset, getTimeZone, getTimeZone, hasSameRules, observesDaylightTime, setDefault, setID, toZoneId
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOffset
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)
-
setRawOffset
public void setRawOffset(int offsetMillis)
- Specified by:
setRawOffsetin classTimeZone
-
getRawOffset
public int getRawOffset()
- Specified by:
getRawOffsetin classTimeZone
-
useDaylightTime
public boolean useDaylightTime()
- Specified by:
useDaylightTimein classTimeZone
-
inDaylightTime
public boolean inDaylightTime(Date date)
- Specified by:
inDaylightTimein classTimeZone
-
-