You are here

public function EasyRdf_Literal_DateTime::hour in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/DateTime.php \EasyRdf_Literal_DateTime::hour()

24-hour format of the hour as an integer

Return value

integer

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/DateTime.php, line 95

Class

EasyRdf_Literal_DateTime
Class that represents an RDF Literal of datatype xsd:dateTime

Code

public function hour() {
  return (int) $this
    ->format('H');
}