public function EasyRdf_Literal_Date::format

Returns date formatted according to given format

Parameters

string $format:

Return value

string

See also

DateTime::format

6 calls to EasyRdf_Literal_Date::format()
EasyRdf_Literal_Date::day in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Date.php
Integer representation of the day of the month
EasyRdf_Literal_Date::month in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Date.php
Integer representation of the month
EasyRdf_Literal_Date::year in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Date.php
A full integer representation of the year, 4 digits
EasyRdf_Literal_DateTime::hour in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/DateTime.php
24-hour format of the hour as an integer
EasyRdf_Literal_DateTime::min in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/DateTime.php
The minutes pasts the hour as an integer

... See full list

File

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

Class

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

Code

public function format($format) {
  return $this
    ->getValue()
    ->format($format);
}