Package org.apache.commons.lang3.time
Class TimeZones
- java.lang.Object
-
- org.apache.commons.lang3.time.TimeZones
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeZonetoTimeZone(TimeZone timeZone)Returns the given TimeZone if non-null, otherwiseTimeZone.getDefault().
-
-
-
Method Detail
-
toTimeZone
public static TimeZone toTimeZone(TimeZone timeZone)
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
-
-