You are here

public function EasyRdf_Literal_DateTime::sec 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::sec()

The seconds pasts the minute as an integer

Return value

integer

File

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

Class

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

Code

public function sec() {
  return (int) $this
    ->format('s');
}