Class JavaTimeUtils

java.lang.Object
com.illumon.util.JavaTimeUtils

public class JavaTimeUtils extends Object
Utility class to help with Java time usage
  • Constructor Details

    • JavaTimeUtils

      public JavaTimeUtils()
  • Method Details

    • getAndVerifyTimeZoneID

      public static TimeZone getAndVerifyTimeZoneID(String timeZoneID)
      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