SimplePie_Item::get_local_date

SummerySummery

Get the localized posting date/time for the item

Syntax

SimplePie_Item::get_local_date( string $date_format = '%c' )

DescriptionDescription

Returns the date formatted in the localized language. To display in languages other than the server’s default, you need to change the locale with setlocale(). The available localizations depend on which ones are installed on your web server.

ParametersParameters

$date_format

(string) (Optional) Supports any PHP date format from http://php.net/strftime (empty for the raw data)

Default value: '%c'

ReturnReturn

(int|string|null)

SourceSource

File: wp-includes/SimplePie/Item.php


			

ChangelogChangelog

Changelog
Version Description
1.0 Introduced.
Scroll to Top