public function Carbon::isSameAs in Persian Date for Drupal 8 8.4        
                          
                  
                        
3 calls to Carbon::isSameAs()
  - Carbon::isBirthday in src/Library/Carbon/Carbon.php
- Check if its the birthday. Compares the date/month values of the two dates.
- Carbon::isSameMonth in src/Library/Carbon/Carbon.php
- Checks if the passed in date is in the same month as the instance month (and year if needed).
- Carbon::isSameYear in src/Library/Carbon/Carbon.php
- Checks if the passed in date is in the same year as the instance year.
File
 
   - src/Library/Carbon/Carbon.php, line 1821
Class
  
  - Carbon 
- A simple API extension for DateTime
Namespace
  Drupal\persian_date\Library\Carbon
Code
public function isSameAs($format, Carbon $dt = null) {
  $dt = $dt ?: static::now($this->tz);
  return $this
    ->format($format) === $dt
    ->format($format);
}