IXR_Date::__construct() WordPress Method
The IXR_Date::__construct() method is used to create an IXR_Date object. This object can be used to represent a date and time. The method takes two parameters: a timestamp and a time zone. The timestamp must be a positive integer and the time zone must be a string.
IXR_Date::__construct( $time ) #
PHP5 constructor.
Source
File: wp-includes/IXR/class-IXR-date.php
function __construct( $time )
{
// $time can be a PHP timestamp or an ISO one
if (is_numeric($time)) {
$this->parseTimestamp($time);
} else {
$this->parseIso($time);
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub