W3cubDocs

/WordPress

IXR_Date::__construct( $time )

PHP5 constructor.

Source

function __construct( $time )
{
    // $time can be a PHP timestamp or an ISO one
    if (is_numeric($time)) {
        $this->parseTimestamp($time);
    } else {
        $this->parseIso($time);
    }
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/ixr_date/__construct