SimplePie_Item::get_gmdate

Advertisement

Summery Summery

Get the posting date/time for the item (UTC time)

Syntax Syntax

SimplePie_Item::get_gmdate( string $date_format = 'j F Y, g:i a' )

Parameters Parameters

$date_format

(Optional) Supports any PHP date format from http://php.net/date

Default value: 'j F Y, g:i a'

Return Return

(int|string|null)

Source Source

File: wp-includes/SimplePie/Item.php

	/**
	 * Get the posting date/time for the item (UTC time)
	 *
	 * @see get_date
	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
	 * @return int|string|null
	 */
	public function get_gmdate($date_format = 'j F Y, g:i a')
	{
		$date = $this->get_date('U');

Advertisement

See also See also

Advertisement

Leave a Reply