diff --git a/src/Converter.php b/src/Converter.php index 5d07eb0..74d5981 100644 --- a/src/Converter.php +++ b/src/Converter.php @@ -106,7 +106,7 @@ public static function julianToHijri(float $julianDay) $z = $z - floor($j * $y + $shift1); $year = 30 * $cyc + $j; - $month = floor(($z + 28.5001) / 29.5); + $month = (int)floor(($z + 28.5001) / 29.5); if ($month === 13) { $month = 12; @@ -116,4 +116,4 @@ public static function julianToHijri(float $julianDay) return (object) ['year' => (int) $year, 'month' => (int) $month, 'day' => (int) $day]; } -} \ No newline at end of file +} diff --git a/src/Translations/Russian.php b/src/Translations/Russian.php new file mode 100644 index 0000000..fc17120 --- /dev/null +++ b/src/Translations/Russian.php @@ -0,0 +1,96 @@ +hijriMonths; + } + + /** + * get array of short days names + * started from Sunday + * + * @return array + */ + public function getShortDays(): array + { + return $this->shortDays; + } + + /** + * get array of months names + * started from Sunday + * + * @return array + */ + public function getDays(): array + { + return $this->days; + } + + /** + * get array of periods + * + * @return array + */ + public function getPeriods(): array + { + return $this->periods; + } +} \ No newline at end of file