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);
        }
    }

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.