Class EasyRdf_Literal_DateTime

Description

Class that represents an RDF Literal of datatype xsd:dateTime

Located in /EasyRdf/Literal/DateTime.php (line 47)

EasyRdf_Literal
   |
   --EasyRdf_Literal_Date
      |
      --EasyRdf_Literal_DateTime
Method Summary
static object EasyRdf_Literal_DateTime parse (string $value)
object EasyRdf_Literal_DateTime __construct (mixed $value, [string $lang = null], [string $datatype = null])
integer hour ()
integer min ()
integer sec ()
Methods
static method parse (line 80)

Parses a string using DateTime and creates a new literal

Example: $dt = EasyRdf_Literal_DateTime::parse('Mon 18 Jul 2011 18:45:43 BST');

  • see: DateTime
  • access: public
static object EasyRdf_Literal_DateTime parse (string $value)
  • string $value: The date and time to parse

Redefinition of:
EasyRdf_Literal_Date::parse()
Parses a string using DateTime and creates a new literal
Constructor __construct (line 60)

Constructor for creating a new date and time literal

If the value is a DateTime object, then it will be converted to the xsd:dateTime format.

  • see: DateTime
  • access: public
object EasyRdf_Literal_DateTime __construct (mixed $value, [string $lang = null], [string $datatype = null])
  • mixed $value: The value of the literal
  • string $lang: Should be null (literals with a datatype can't have a language)
  • string $datatype: Optional datatype (default 'xsd:dateTime')

Redefinition of:
EasyRdf_Literal_Date::__construct()
Constructor for creating a new date literal
hour (line 90)

24-hour format of the hour as an integer

  • access: public
integer hour ()
min (line 99)

The minutes pasts the hour as an integer

  • access: public
integer min ()
sec (line 108)

The seconds pasts the minute as an integer

  • access: public
integer sec ()

Inherited Methods

Inherited From EasyRdf_Literal_Date

EasyRdf_Literal_Date::__construct()
EasyRdf_Literal_Date::day()
EasyRdf_Literal_Date::format()
EasyRdf_Literal_Date::getValue()
EasyRdf_Literal_Date::month()
EasyRdf_Literal_Date::parse()
EasyRdf_Literal_Date::year()

Inherited From EasyRdf_Literal

EasyRdf_Literal::__construct()
EasyRdf_Literal::create()
EasyRdf_Literal::deleteDatatypeMapping()
EasyRdf_Literal::dumpValue()
EasyRdf_Literal::getDatatype()
EasyRdf_Literal::getDatatypeForValue()
EasyRdf_Literal::getDatatypeUri()
EasyRdf_Literal::getLang()
EasyRdf_Literal::getValue()
EasyRdf_Literal::setDatatypeMapping()
EasyRdf_Literal::toArray()
EasyRdf_Literal::__toString()

Documentation generated on Wed, 16 Jan 2013 19:16:37 +0000 by phpDocumentor 1.4.4