Skip to content

Commit

Permalink
Merge pull request #129 from maogou/patch-1
Browse files Browse the repository at this point in the history
doc: Update Precision::HOUR to Precision::HOUR()
  • Loading branch information
freekmurze committed Sep 11, 2023
2 parents cef7df5 + 0153f7f commit 63e5e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ foreach ($datePeriod as $date) {
// (31 iterations)
}

$timePeriod = Period::make(Carbon::make('2021-01-01 00:00:00'), Carbon::make('2021-01-01 23:59:59'), Precision::HOUR);
$timePeriod = Period::make(Carbon::make('2021-01-01 00:00:00'), Carbon::make('2021-01-01 23:59:59'), Precision::HOUR());

foreach ($timePeriod as $time) {
/** @var DateTimeImmutable $time */
Expand Down

0 comments on commit 63e5e0e

Please sign in to comment.