Cake\Chronos\Traits\ComparisonTrait::isBirthday PHP Method

isBirthday() public method

Check if its the birthday. Compares the date/month values of the two dates.
public isBirthday ( Cake\Chronos\ChronosInterface $dt = null ) : static
$dt Cake\Chronos\ChronosInterface The instance to compare with or null to use current day.
return static
    public function isBirthday(ChronosInterface $dt = null)
    {
        if ($dt === null) {
            $dt = static::now($this->tz);
        }
        return $this->format('md') === $dt->format('md');
    }