You are here

public static function jDateTime::mod in Persian Date for Drupal 8 8.4

Parameters

$a:

$b:

Return value

mixed

4 calls to jDateTime::mod()
jDateTime::d2g in src/Library/Jalali/jDateTime.php
jDateTime::d2j in src/Library/Jalali/jDateTime.php
Converts the Julian Day number to a date in the Jalaali calendar.
jDateTime::g2d in src/Library/Jalali/jDateTime.php
Calculates the Julian Day number from Gregorian or Julian calendar dates. This integer number corresponds to the noon of the date (i.e. 12 hours of Universal Time). The procedure was tested to be good since 1 March, -100100 (of both calendars) up to a…
jDateTime::jalaliCal in src/Library/Jalali/jDateTime.php
This function determines if the Jalaali (Persian) year is leap (366-day long) or is the common year (365 days), and finds the day in March (Gregorian calendar) of the first day of the Jalaali year (jy).

File

src/Library/Jalali/jDateTime.php, line 218

Class

jDateTime
Class jDateTime @package Morilog\Jalali

Namespace

Drupal\persian_date\Library\Jalali

Code

public static function mod($a, $b) {
  return $a - ~~($a / $b) * $b;
}