Extension of the DateTime class to support formatting a date using the locale.
More...
Extension of the DateTime class to support formatting a date using the locale.
- Since
- 3.0
Definition at line 12 of file DateTime.php.
Elgg\I18n\DateTime::dateFormatToICU |
( |
string |
$dateFormat | ) |
|
|
protected |
Elgg\I18n\DateTime::formatIntl |
( |
string |
$format, |
|
|
string |
$language |
|
) |
| |
|
protected |
Try to format to a locale using the 'intl' PHP module.
- Parameters
-
string | $format | output format, supports date() formatting |
string | $language | the output language |
- Returns
- string|false
- Since
- 4.1
Definition at line 82 of file DateTime.php.
Elgg\I18n\DateTime::formatLocale |
( |
string |
$format, |
|
|
string |
$language = null |
|
) |
| |
Try to format the date using locale output.
- Parameters
-
string | $format | output format, supports date() formatting |
string | $language | the output language, defaults to current language |
- Returns
- string
Definition at line 22 of file DateTime.php.
The documentation for this class was generated from the following file: