eZ\Publish\Core\FieldType\Time\Type::fromHash PHP Method

fromHash() public method

Converts an $hash to the Value defined by the field type.
public fromHash ( integer $hash ) : Value
$hash integer Number of seconds since Unix Epoch
return Value $value
    public function fromHash($hash)
    {
        if ($hash === null) {
            return $this->getEmptyValue();
        }
        return new Value($hash);
    }