From c972a69934deb6251ef124705e553a4e4bd45ebe Mon Sep 17 00:00:00 2001 From: Omid Reza Vasheghani Farahani Date: Fri, 16 Sep 2022 17:38:58 +0430 Subject: [PATCH] Updated readme and added getLastDayOfMonth, getLastDayOfYear and diff methods --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 99a2b18..7f80316 100644 --- a/README.md +++ b/README.md @@ -639,7 +639,12 @@ public function getNextMonth(): Jalalian ``` --- +```php +public function diff(Jalalian $ref): array +$diff = (new Jalalian(1397, 5, 24))->diff(new Jalalian(1398, 6, 30)); +// output: [1, 1, 6] +``` ### CalendarUtils ---