Date_I18n_Immutable::format_i18n( string $date_format )

Returns a translated string using the params from this Immutable DateTime instance.


Parameters #

$date_format

(string) (Required) Format to be used in the translation.


Top ↑

Return #

(string) Translated date.


Top ↑

Source #

File: src/Tribe/Utils/Date_I18n_Immutable.php

	public function format_i18n( $date_format ) {
		$unix_with_tz = $this->getTimestamp() + $this->getOffset();
		$translated   = date_i18n( $date_format, $unix_with_tz );

		return $translated;
	}

Top ↑

Changelog #

Changelog
Version Description
4.11.0 Introduced.