W3cubDocs

/WordPress

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

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