Skip to content

Commit 5c488a0

Browse files
Radioactive49Matyas Grogertaylorotwell
authored
adding quarterlyOn cron schedule frequency command (#42692)
* adding quarterlyOn cron schedule frequency command * Update ManagesFrequencies.php Co-authored-by: Matyas Groger <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 302a579 commit 5c488a0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Illuminate/Console/Scheduling/ManagesFrequencies.php

+15
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,21 @@ public function quarterly()
467467
->spliceIntoPosition(4, '1-12/3');
468468
}
469469

470+
/**
471+
* Schedule the event to run quarterly on a given day and time.
472+
*
473+
* @param int $dayOfQuarter
474+
* @param int $time
475+
* @return $this
476+
*/
477+
public function quarterlyOn($dayOfQuarter = 1, $time = '0:0')
478+
{
479+
$this->dailyAt($time);
480+
481+
return $this->spliceIntoPosition(3, $dayOfQuarter)
482+
->spliceIntoPosition(4, '1-12/3');
483+
}
484+
470485
/**
471486
* Schedule the event to run yearly.
472487
*

0 commit comments

Comments
 (0)