public function Carbon::isBirthday in Persian Date for Drupal 8 8.4
Check if its the birthday. Compares the date/month values of the two dates.
Parameters
\Drupal\persian_date\Library\Carbon\Carbon|null $dt The instance to compare with or null to use current day.:
Return value
bool
File
- src/
Library/ Carbon/ Carbon.php, line 3315
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function isBirthday(Carbon $dt = null) {
return $this
->isSameAs('md', $dt);
}