eZ\Publish\Core\FieldType\DateAndTime\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->value === null) {
            return null;
        }
        return $value->value->getTimestamp();
    }