Package com.illumon.util
Class JavaTimeUtils
java.lang.Object
com.illumon.util.JavaTimeUtils
Utility class to help with Java time usage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZone
getAndVerifyTimeZoneID
(String timeZoneID) TimeZone.getTimeZone doesn't indicate if the time zone ID (name) isn't valid.
-
Constructor Details
-
JavaTimeUtils
public JavaTimeUtils()
-
-
Method Details
-
getAndVerifyTimeZoneID
TimeZone.getTimeZone doesn't indicate if the time zone ID (name) isn't valid.- Parameters:
timeZoneID
- the Java time zone ID- Returns:
- the TimeZone corresponding to the ID
- Throws:
IllegalArgumentException
- if the time zone ID isn't valid
-