Skip to content

Commit e294db2

Browse files
authored
Add 'milliseconds', 'weeks', and months to interval functions (#10939)
1 parent 831cf00 commit e294db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3227,7 +3227,7 @@ For a thorough discussion of Carbon and its features, please consult the [offici
32273227
<a name="interval-functions"></a>
32283228
#### Interval Functions
32293229

3230-
Laravel also offers `seconds`, `minutes`, `hours`, `days`, and `years` functions that return `CarbonInterval` instances, which extend PHP's [DateInterval](https://www.php.net/manual/en/class.dateinterval.php) class. These functions may be used anywhere that Laravel accepts a `DateInterval` instance:
3230+
Laravel also offers `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `weeks`, `months`, and `years` functions that return `CarbonInterval` instances, which extend PHP's [DateInterval](https://www.php.net/manual/en/class.dateinterval.php) class. These functions may be used anywhere that Laravel accepts a `DateInterval` instance:
32313231

32323232
```php
32333233
use Illuminate\Support\Facades\Cache;

0 commit comments

Comments
 (0)