src/Interval.php
/**
	 * Checks whether the intervals are equal based on their value in seconds
	 *
	 * @param DateInterval $a
	 * @param DateInterval $b
	 *
	 * @return bool
	 */
Checks whether the intervals are equal based on their value in seconds
@param DateInterval $a
@param DateInterval $b

@return bool
Checks whether the intervals are equal based on their value in seconds @param DateInterval $a @param DateInterval $b @return bool
public static function areEqual(DateInterval $a, DateInterval $b): bool
	{
		try {
			return self::toSeconds($a) === self::toSeconds($b)
				&& $a->invert === $b->invert;
		} catch (\Throwable $e) {
		}
		return false;
	}
public static function areEqual ( DateInterval $ a , DateInterval $ b ) : bool { try { return self :: toSeconds ( $ a ) === self :: toSeconds ( $ b ) && $ a -> invert === $ b -> invert ; } catch ( \ Throwable $ e ) { } return false ; }
Checks whether the intervals are equal based on their value in seconds
 @param DateInterval $a
 @param DateInterval $b
Checks whether the intervals are equal based on their value in seconds @param DateInterval $a @param DateInterval $b
// pass thru