PHP » GoLang |
login |
register |
about
|
GoLang IntlDateFormatter::format
request it (402)
GoLang replacement for PHP's IntlDateFormatter::format
[edit | history]
IntlDateFormatter::formatdatefmt_format(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) IntlDateFormatter::format -- datefmt_format — Format the date/time value as a string DescriptionObject oriented style Procedural style Formats the time value as a string. Parameters
Return Values
The formatted string or, if an error occurred, Changelog
ExamplesExample #1 datefmt_format() example
<?php Example #2 OO example
<?php The above example will output: First Formatted output is Wednesday, December 31, 1969 4:00:00 PM PT Second Formatted output is Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00 First Formatted output with pattern is 12/31/1969 Second Formatted output with pattern is 12/31/1969 Example #3 With IntlCalendar object
<?php The above example will output: In this islamic year, Ramadan started/will start on: mardi 9 juillet 2013 19:00:00 heure avancée d’Europe centrale After changing timezone: mercredi 10 juillet 2013 02:00:00 heure normale du Japon See Also
|
more
Recently updated
more
Most requested
more
Last requests
|