Skip to content

Commit

Permalink
Merge pull request #31 from DexterHarrison/main
Browse files Browse the repository at this point in the history
Add Group By Minute Period
  • Loading branch information
freekmurze authored Dec 9, 2022
2 parents d7538ea + 1995794 commit 2c2dfcc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/StatsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public function groupByHour(): self
return $this;
}

public function groupByMinute(): self
{
$this->period = 'minute';

return $this;
}

public function start(DateTimeInterface $start): self
{
$this->start = $start;
Expand Down

0 comments on commit 2c2dfcc

Please sign in to comment.