From 9dbecd9360116f353f4b30fd8dbd8a7b1939c6a1 Mon Sep 17 00:00:00 2001 From: Taha Moghaddam Date: Fri, 3 Jan 2025 13:31:40 +0330 Subject: [PATCH] Update README.md Add documentation for getFirstDayOfWeek --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7b85b0c..363e5d0 100644 --- a/README.md +++ b/README.md @@ -393,6 +393,14 @@ $date = Jalalian::now()->lessThanOrEqualsToCarbon(Carbon::now())) ``` +--- +```php +public function getFirstDayOfWeek(): bool + +$date = (new Jalalian(1403, 10, 14))->getFirstDayOfWeek() +// output: 1403, 10, 8 + +``` --- ```php public function isStartOfWeek(): bool