public function Carbon::max in Persian Date for Drupal 8 8.4
Get the maximum instance between a given instance (default now) and the current instance.
Parameters
\Drupal\persian_date\Library\Carbon\Carbon|null $dt:
Return value
static
1 call to Carbon::max()
- Carbon::maximum in src/
Library/ Carbon/ Carbon.php - Get the maximum instance between a given instance (default now) and the current instance.
File
- src/
Library/ Carbon/ Carbon.php, line 1640
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function max(Carbon $dt = null) {
$dt = $dt ?: static::now($this
->getTimezone());
return $this
->gt($dt) ? $this : $dt;
}