src/Event.php
public function on($date)
    {
        $parsedDate = \date_parse($date);
        $segments = \array_intersect_key($parsedDate, $this->fieldsPosition);

        if ($parsedDate['year']) {
            $this->skip(static function () use ($parsedDate) {
                return (int) \date('Y') !== $parsedDate['year'];
            });
        }

        foreach ($segments as $key => $value) {
            if (false !== $value) {
                $this->spliceIntoPosition($this->fieldsPosition[$key], (string) $value);
            }
        }

        return $this;
    }
public function on($date)
    {
        $parsedDate = \date_parse($date);
        $segments = \array_intersect_key($parsedDate, $this->fieldsPosition);

        if ($parsedDate['year']) {
            $this->skip(static function () use ($parsedDate) {
                return (int) \date('Y') !== $parsedDate['year'];
            });
        }

        foreach ($segments as $key => $value) {
            if (false !== $value) {
                $this->spliceIntoPosition($this->fieldsPosition[$key], (string) $value);
            }
        }

        return $this;
    }
public function on ( $ date ) { $ parsedDate = \ date_parse ( $ date ) ; $ segments = \ array_intersect_key ( $ parsedDate , $ this -> fieldsPosition ) ; if ( $ parsedDate [ 'year' ] ) { $ this -> skip ( static function ( ) use ( $ parsedDate ) { return ( int ) \ date ( 'Y' ) !== $ parsedDate [ 'year' ] ; } ) ; } foreach ( $ segments as $ key => $ value ) { if ( false !== $ value ) { $ this -> spliceIntoPosition ( $ this -> fieldsPosition [ $ key ] , ( string ) $ value ) ; } } return $ this ; }
Schedule the event to run on a certain date.

@param string $date

@return $this
Schedule the event to run on a certain date .