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

max() public method

Get the maximum instance between a given instance (default now) and the current instance.
public max ( Cake\Chronos\ChronosInterface $dt = null ) : static
$dt Cake\Chronos\ChronosInterface The instance to compare with.
return static
    public function max(ChronosInterface $dt = null)
    {
        $dt = $dt === null ? static::now($this->tz) : $dt;
        return $this->gt($dt) ? $this : $dt;
    }