IXR_Date::parseTimestamp() WordPress Method

The IXR_Date::parseTimestamp() method is used to parse a timestamp into an IXR_Date object.

IXR_Date::parseTimestamp( $timestamp ) #


Source

File: wp-includes/IXR/class-IXR-date.php

    function parseTimestamp($timestamp)
    {
        $this->year = gmdate('Y', $timestamp);
        $this->month = gmdate('m', $timestamp);
        $this->day = gmdate('d', $timestamp);
        $this->hour = gmdate('H', $timestamp);
        $this->minute = gmdate('i', $timestamp);
        $this->second = gmdate('s', $timestamp);
        $this->timezone = '';
    }

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.