Date_I18n_Immutable::format_i18n( string $date_format )
Returns a translated string using the params from this Immutable DateTime instance.
Contents
Parameters
- $date_format
-
(string) (Required) Format to be used in the translation.
Return
(string) Translated date.
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; }
Changelog
Version | Description |
---|---|
4.11.0 | Introduced. |