Skip to content

Commit

Permalink
Add weekday getter to date
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kolb committed Jun 9, 2024
1 parent 0f22610 commit b3e22d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ public function datesUntil(
return $dates;
}

public function weekday(): Weekday
{
return Weekday::fromDate($this);
}

// Mutations

public function format(string $format): string
Expand Down

0 comments on commit b3e22d0

Please sign in to comment.