Class Date i18n Immutable
- Full name:
\StellarWP\Dates\Date_I18n_Immutable
- Parent class:
DateTimeImmutable
{@inheritDoc}
public static createFromMutable(mixed $datetime): \StellarWP\Dates\Date_I18n_Immutable
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$datetime |
mixed |
Return Value:
Localizable variation of DateTimeImmutable.
Returns a translated string using the params from this Immutable DateTime instance.
public format_i18n(string $date_format): string
Parameters:
Parameter | Type | Description |
---|---|---|
$date_format |
string | Format to be used in the translation. |
Return Value:
Translated date.
Automatically generated from source code comments on 2024-09-11 using phpDocumentor and saggre/phpdocumentor-markdown