Overtrue\Validation\Validator::checkDateTimeOrder PHP Method

checkDateTimeOrder() protected method

Given two date/time strings, check that one is after the other.
protected checkDateTimeOrder ( string $format, string $before, string $after ) : boolean
$format string
$before string
$after string
return boolean
    protected function checkDateTimeOrder($format, $before, $after)
    {
        $before = $this->getDateTimeWithOptionalFormat($format, $before);
        $after = $this->getDateTimeWithOptionalFormat($format, $after);
        return $before && $after && $after > $before;
    }
Validator