PHP » GoLang |
login |
register |
about
|
GoLang IntlDateFormatter::setPattern
request it (290)
GoLang replacement for PHP's IntlDateFormatter::setPattern
[edit | history]
PHP IntlDateFormatter::setPatternPHP original manual for IntlDateFormatter::setPattern [ show | php.net ]IntlDateFormatter::setPatterndatefmt_set_pattern(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) IntlDateFormatter::setPattern -- datefmt_set_pattern — Set the pattern used for the IntlDateFormatter DescriptionObject oriented style
public bool IntlDateFormatter::setPattern
( string
$pattern
)Procedural style Set the pattern used for the IntlDateFormatter. Parameters
Return Values
Returns ExamplesExample #1 datefmt_set_pattern() example
<?php Example #2 OO example
<?php The above example will output: 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 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|