Package org.apache.commons.lang3.time
Class TimeZones
- java.lang.Object
-
- org.apache.commons.lang3.time.TimeZones
-
public class TimeZones extends java.lang.Object
Helps to deal withTimeZone
s.- Since:
- 3.7
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.TimeZone
toTimeZone(java.util.TimeZone timeZone)
Returns the given TimeZone if non-null
, otherwiseTimeZone.getDefault()
.
-
-
-
Field Detail
-
GMT_ID
public static final java.lang.String GMT_ID
A public version ofTimeZone
's package privateGMT_ID
field.- See Also:
- Constant Field Values
-
GMT
public static final java.util.TimeZone GMT
The GMT time zone.- Since:
- 3.13.0
-
-