public function Carbon::isLastMonth in Persian Date for Drupal 8 8.4
Determines if the instance is within the last month
Return value
bool
File
- src/
Library/ Carbon/ Carbon.php, line 1746
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function isLastMonth() {
return $this->month === static::now($this
->getTimezone())
->subMonthNoOverflow()->month;
}