Merge pull request #687 from wturrell/patch-6

Date and Time - talk about Carbon
This commit is contained in:
Phil Sturgeon
2016-09-29 12:35:34 -04:00
committed by GitHub

View File

@@ -60,6 +60,8 @@ foreach ($periodIterator as $date) {
}
{% endhighlight %}
A popular PHP API extension is [Carbon](http://carbon.nesbot.com). It inherits everything in the DateTime class, so involves minimal code alterations, but extra features include Localization support, further ways to add, subtract and format a DateTime object, plus a means to test your code by simulating a date and time of your choosing.
* [Read about DateTime][datetime]
* [Read about date formatting][dateformat] (accepted date format string options)