eZ\Publish\Core\FieldType\Time\Value::__toString PHP Method

__toString() public method

See also: eZ\Publish\Core\FieldType\Value
public __toString ( )
    public function __toString()
    {
        if ($this->time === null) {
            return '';
        }
        $dateTime = new DateTime("@{$this->time}");
        return $dateTime->format($this->stringFormat);
    }