public function EasyRdf_Literal_Date::getValue

Returns the date as a PHP DateTime object

Return value

string

Overrides EasyRdf_Literal::getValue

See also

DateTime::format

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Date.php, line 90

Class

EasyRdf_Literal_Date
Class that represents an RDF Literal of datatype xsd:date

Code

public function getValue() {
  return new DateTime($this->value);
}