protected function inTimeInterval(string $startTime, string $endTime): Closure
    {
        if ($this->isMidnightBetween($startTime, $endTime)) {
            $endTime .= ' +1 day';
        }

        return function () use ($startTime, $endTime) {
            return Chronos::now($this->timezone)->between(
                Chronos::parse($startTime, $this->timezone),
                Chronos::parse($endTime, $this->timezone)
            );
        };
    }