Class DateUtils

java.lang.Object
io.openems.common.utils.DateUtils

public class DateUtils extends Object
  • Method Details

    • assertSameTimezone

      public static void assertSameTimezone(ZonedDateTime date1, ZonedDateTime date2) throws OpenemsException
      Asserts that both dates are in the same timezone.
      Parameters:
      date1 - the first Date
      date2 - the second Date
      Throws:
      OpenemsException - if dates are not in the same timezone