WordPress at Your Fingertips
function is not described

SimplePie_Item::get_gmdate() public WP 1.0

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

{} It's a method of the class: SimplePie_Item{}

No Hooks.

Return

Int|String|null.

Usage

$SimplePie_Item = new SimplePie_Item();
$SimplePie_Item->get_gmdate( $date_format );
$date_format(string)
Supports any PHP date format from {@see http://php.net/date}
Default: 'j F Y, g:i a'

Notes

  • See: get_date

Code of SimplePie_Item::get_gmdate() WP 5.8.2

public function get_gmdate($date_format = 'j F Y, g:i a')
{
	$date = $this->get_date('U');
	if ($date === null)
	{
		return null;
	}

	return gmdate($date_format, $date);
}