You are here

private static function DatexPoorMansJaliliCalendar::div in Datex 8

2 calls to DatexPoorMansJaliliCalendar::div()
DatexPoorMansJaliliCalendar::toGregorian in src/Datex/DatexPoorMansJaliliCalendar.php
Converts Jalali date to gregorian date.
DatexPoorMansJaliliCalendar::toJalali in src/Datex/DatexPoorMansJaliliCalendar.php
Converts gregorian date to jalali date.

File

src/Datex/DatexPoorMansJaliliCalendar.php, line 163
Fallback calendar implementation in case php-intl is not avaiable.

Class

DatexPoorMansJaliliCalendar
Jalali calendar for datex.

Namespace

Drupal\datex\Datex

Code

private static function div($a, $b) {
  return (int) ($a / $b);
}