public function EasyRdf_Literal_Date::year

A full integer representation of the year, 4 digits

Return value

integer

File

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

Class

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

Code

public function year() {
  return (int) $this
    ->format('Y');
}