This commit is contained in:
邓皓元 2019-08-12 14:44:05 +08:00
parent cbb1447918
commit 1d354032a5

View File

@ -16,6 +16,7 @@ $start = Carbon::parse('2016-01')->startOfMonth();
$end = Carbon::parse('2019-07')->endOfMonth();
for ($i = 0; $i <= $end->diffInMonths($start); $i++) {
sleep(1);
$month = $start->copy()->addMonths($i)->format('Y-m');
$conditions['month'] = $month;
echo $month . PHP_EOL;