eZ\Publish\Core\FieldType\Date\Type::getSortInfo PHP Method

getSortInfo() protected method

Returns information for FieldValue->$sortKey relevant to the field type.
protected getSortInfo ( Value $value ) : array
$value eZ\Publish\Core\FieldType\Value
return array
    protected function getSortInfo(BaseValue $value)
    {
        if ($value->date === null) {
            return null;
        }
        return $value->date->getTimestamp();
    }