Title: IXR_Date::parseTimestamp
Published: July 6, 2022
Last modified: August 20, 2026

---

# IXR_Date::parseTimestamp( $timestamp )

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/ixr_date/parsetimestamp/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/ixr_date/parsetimestamp/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/ixr_date/parsetimestamp/?output_format=md#wp--skip-link--target)

## 󠀁[Source](https://developer.wordpress.org/reference/classes/ixr_date/parsetimestamp/?output_format=md#source)󠁿

    ```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 = '';
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ixr/class-ixr-date.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/IXR/class-IXR-date.php#L38)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/IXR/class-IXR-date.php#L38-L47)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/ixr_date/parsetimestamp/?output_format=md#related)󠁿

| Used by | Description | 
| [IXR_Date::__construct()](https://developer.wordpress.org/reference/classes/ixr_date/__construct/)`wp-includes/IXR/class-IXR-date.php` |

PHP5 constructor.

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fixr_date%2Fparsetimestamp%2F)
before being able to contribute a note or feedback.