Skip to content

Commit

Permalink
Merge pull request #5178 from antograssiot/3.0
Browse files Browse the repository at this point in the history
3.0 update API example
  • Loading branch information
ADmad committed Nov 16, 2014
2 parents 0e0b987 + 22dd01c commit 53f3ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/I18n/Time.php
Expand Up @@ -488,7 +488,7 @@ public function isWithinNext($timeInterval) {
* $time = new Time('2014-04-20 22:10');
* $time->i18nFormat(); // outputs '4/20/14, 10:10 PM' for the en-US locale
* $time->i18nFormat(\IntlDateFormatter::FULL); // Use the full date and time format
* $time->i18nFormat([\IntlDateFormatter::FULL, \IntlDateFormatter::Short]); // Use full date but short time format
* $time->i18nFormat([\IntlDateFormatter::FULL, \IntlDateFormatter::SHORT]); // Use full date but short time format
* $time->i18nFormat('YYYY-MM-dd HH:mm:ss'); // outputs '2014-04-20 22:10'
* }}}
*
Expand Down

0 comments on commit 53f3ecf

Please sign in to comment.