Package org.apache.commons.lang3.time
Class TimeZones
java.lang.Object
org.apache.commons.lang3.time.TimeZones
Helps to deal with
TimeZones.- Since:
- 3.7
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZonetoTimeZone(TimeZone timeZone) Returns the given TimeZone if non-null, otherwiseTimeZone.getDefault().
-
Field Details
-
GMT_ID
A public version ofTimeZone's package privateGMT_IDfield.- See Also:
-
GMT
The GMT time zone.- Since:
- 3.13.0
-
-
Method Details
-
toTimeZone
Returns the given TimeZone if non-null, otherwiseTimeZone.getDefault().- Parameters:
timeZone- a locale ornull.- Returns:
- the given locale if non-
null, otherwiseTimeZone.getDefault(). - Since:
- 3.13.0
-