mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-07 03:35:16 +00:00
29 lines
901 B
Plaintext
29 lines
901 B
Plaintext
--TEST--
|
|
"format_date" filter
|
|
--CONDITION--
|
|
version_compare(Symfony\Component\Intl\Intl::getIcuVersion(), '72.1', '<')
|
|
--TEMPLATE--
|
|
{{ '2019-08-07 23:39:12'|format_datetime() }}
|
|
{{ '2019-08-07 23:39:12'|format_datetime(locale='fr') }}
|
|
{{ '2019-08-07 23:39:12'|format_datetime('none', 'short', locale='fr') }}
|
|
{{ '2019-08-07 23:39:12'|format_datetime('short', 'none', locale='fr') }}
|
|
{{ '2019-08-07 23:39:12'|format_datetime('full', 'full', locale='fr') }}
|
|
{{ '2019-08-07 23:39:12'|format_datetime(pattern="hh 'oclock' a, zzzz") }}
|
|
|
|
{{ '2019-08-07 23:39:12'|format_date }}
|
|
{{ '2019-08-07 23:39:12'|format_date(locale='fr') }}
|
|
{{ '2019-08-07 23:39:12'|format_time }}
|
|
--DATA--
|
|
return [];
|
|
--EXPECT--
|
|
Aug 7, 2019, 11:39:12 PM
|
|
7 août 2019, 23:39:12
|
|
23:39
|
|
07/08/2019
|
|
mercredi 7 août 2019 à 23:39:12 temps universel coordonné
|
|
11 oclock PM, Coordinated Universal Time
|
|
|
|
Aug 7, 2019
|
|
7 août 2019
|
|
11:39:12 PM
|