Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ataiemajid63 committed Dec 31, 2022
2 parents 9c83e0b + 61c4784 commit d0eb098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Calendars/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final public function extractJulianDayTime($julianDay)
// Astronomical to civil
$time = floor(($julianDay - floor($julianDay)) * Constants::DAY_IN_SECONDS);

return new Time(floor($time / Constants::HOUR_IN_SECONDS), floor(($time / Constants::MINUTES_PER_HOUR) % Constants::SECONDS_PER_MINUTE), floor($time % Constants::SECONDS_PER_MINUTE));
return new Time(floor($time / Constants::HOUR_IN_SECONDS), floor($time / Constants::MINUTES_PER_HOUR) % Constants::SECONDS_PER_MINUTE, floor($time % Constants::SECONDS_PER_MINUTE));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Calendars/ShiaCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function daysInMonth($year, $month)
1440 => [30, 29, 30, 30, 30, 29, 29, 30, 29, 30, 29, 29],
1441 => [29, 30, 29, 30, 30, 29, 30, 30, 29, 30, 29, 30],
1442 => [29, 29, 30, 29, 30, 29, 30, 30, 29, 30, 30, 29],
1443 => [29, 30, 30, 29, 29, 30, 29, 30, 29, 30, 30, 29],
1444 => [30, 30, 29, 30, 29, 29, 30, 30, 29, 30, 29, 30],
1443 => [29, 30, 30, 29, 29, 30, 29, 30, 30, 29, 30, 29],
1444 => [30, 30, 29, 30, 29, 29, 30, 30, 29, 30, 29, 30]
];

if ($month < 1 || $month > 12) {
Expand Down

0 comments on commit d0eb098

Please sign in to comment.