protected static function jalali2julian($year, $month, $day) {
        
        $parsed = self::parseJalali($year);
        
        return self::georgian2julian($parsed['gYear'], 3, $parsed['march']) + ($month - 1) * 31 - self::division($month, 7) * ($month - 7) + $day - 1;
    }
protected static function jalali2julian($year, $month, $day) {
        
        $parsed = self::parseJalali($year);
        
        return self::georgian2julian($parsed['gYear'], 3, $parsed['march']) + ($month - 1) * 31 - self::division($month, 7) * ($month - 7) + $day - 1;
    }
protected static function jalali2julian ( $ year , $ month , $ day ) { $ parsed = self :: parseJalali ( $ year ) ; return self :: georgian2julian ( $ parsed [ 'gYear' ] , 3 , $ parsed [ 'march' ] ) + ( $ month - 1 ) * 31 - self :: division ( $ month , 7 ) * ( $ month - 7 ) + $ day - 1 ; }
Converts a date of the Jalali calendar to the Julian Day number.

@param int $year  Jalali year    (1 to 3100)
@param int $month Jalali month   (1 to 12)
@param int $day   Jalali day     (1 to 29/31)

@return int  Julian Day number
Converts a date of the Jalali calendar to the Julian Day number .