Package io.openems.common.utils
Class DateUtils
java.lang.Object
io.openems.common.utils.DateUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertSameTimezone
(ZonedDateTime date1, ZonedDateTime date2) Asserts that both dates are in the same timezone.
-
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 Datedate2
- the second Date- Throws:
OpenemsException
- if dates are not in the same timezone
-