depends what time you ran the list command. If between 7am and 22:00 then the answer is correct
Schedule between() not working as expected
I noticed that when scheduling commands the between() method seems to not be doing anything.
I use the example from the docs (laravel.com/docs/10.x/scheduling#between-time-constraints):
$schedule->command('emails:send')
->hourly()
->between('7:00', '22:00');
And launch
php artisan schedule:list
0 * * * * php artisan emails:send ......................... Next Due: in 8 Minutes
I double verified it by installing a fresh Laravel app:
i.imgur.com/PQcbISs.png
As you can see the configuration resolves itself to just hourly, is this a bug or am I missing something?
between() works fine, just the schedule:list command does not display it OK. the tasks are not translated to individual cron entries, so the cron representation is a bit misleading (and wrong in this case). the kernel is run every minute (via cron) and it checks the schedule internally and run respective tasks/commands. and since it is not translated to the cron syntax (edit: well, it might, but i am not going to dig into it:), i just think it would be pain to represent all of the contraints that laravel scheduler provides.
someone tried to improve it, but unfortunately... https://github.com/laravel/framework/pull/47983
Please or to participate in this conversation.