Class DateUtils


  • public class DateUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertSameTimezone​(java.time.ZonedDateTime date1, java.time.ZonedDateTime date2)
      Asserts that both dates are in the same timezone.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • assertSameTimezone

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