Skip to content

Commit

Permalink
Shia year 1446 has been added to the list of days of the month.
Browse files Browse the repository at this point in the history
  • Loading branch information
ataiemajid63 committed Feb 19, 2024
1 parent 2bdc915 commit acbf8c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Calendars/ShiaCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function daysInMonth($year, $month)
1443 => [29, 30, 30, 29, 29, 30, 29, 30, 30, 29, 30, 29],
1444 => [30, 30, 29, 30, 29, 29, 30, 29, 30, 29, 30, 29],
1445 => [30, 30, 30, 29, 30, 29, 29, 30, 29, 30, 29, 29],
1446 => [30, 30, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29],
];

if ($month < 1 || $month > 12) {
Expand Down Expand Up @@ -113,6 +114,7 @@ public function julianDayFirstOfYear($year)
1443 => 2459436.5,
1444 => 2459790.5,
1445 => 2460144.5,
1446 => 2460498.5,
];

if (isset($julianDays[$year])) {
Expand Down

0 comments on commit acbf8c5

Please sign in to comment.