private function inTimeInterval($startTime, $endTime)
    {
        return function () use ($startTime, $endTime) {
            return Carbon::now($this->timezone)->between(
                Carbon::parse($startTime, $this->timezone),
                Carbon::parse($endTime, $this->timezone),
                true
            );
        };
    }
private function inTimeInterval($startTime, $endTime)
    {
        return function () use ($startTime, $endTime) {
            return Carbon::now($this->timezone)->between(
                Carbon::parse($startTime, $this->timezone),
                Carbon::parse($endTime, $this->timezone),
                true
            );
        };
    }
private function inTimeInterval ( $ startTime , $ endTime ) { return function ( ) use ( $ startTime , $ endTime ) { return Carbon :: now ( $ this -> timezone ) -> between ( Carbon :: parse ( $ startTime , $ this -> timezone ) , Carbon :: parse ( $ endTime , $ this -> timezone ) , true ) ; } ; }
Schedule the event to run between start and end time.

@param  string  $startTime
@param  string  $endTime
@return \Closure
Schedule the event to run between start and end time .