Date and Time - talk about Carbon

This commit is contained in:
William Turrell
2016-09-29 13:38:51 +01:00
committed by GitHub
parent 8443cdcd6a
commit 12c37951ef

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)