mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-07 06:26:45 +02:00
Date and Time - talk about Carbon
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user