IntlDateFormatter::setPatterndatefmt_set_pattern(PHP 5 >= 5.3.0, PECL intl >= 1.0.0) IntlDateFormatter::setPattern -- datefmt_set_pattern — Set the pattern used for the IntlDateFormatter ОписаниеОбъектно-ориентированный стиль 
   bool IntlDateFormatter::setPattern
    ( string $pattern
    ) 
  Процедурный стиль Set the pattern used for the IntlDateFormatter. Список параметров
 
 Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. Bad formatstrings are usually the cause of the failure. ПримерыПример #1 datefmt_set_pattern() example 
<?phpПример #2 OO example 
<?phpРезультат выполнения данного примера: pattern of the formatter is : MM/dd/yyyy First Formatted output with pattern is 12/31/1969 Now pattern of the formatter is : yyyymmdd hh:mm:ss z Second Formatted output with pattern is 19690031 04:00:00 PST Смотрите также
 
  | 
||