Cake\Chronos\ChronosInterface::closest PHP 메소드

closest() 공개 메소드

Get the closest date from the instance.
public closest ( Cake\Chronos\ChronosInterface $dt1, Cake\Chronos\ChronosInterface $dt2 ) : static
$dt1 Cake\Chronos\ChronosInterface The instance to compare with.
$dt2 Cake\Chronos\ChronosInterface The instance to compare with.
리턴 static
    public function closest(ChronosInterface $dt1, ChronosInterface $dt2);
ChronosInterface