sundatepicker/src/main/java/com/alirezaafkar/sundatepicker/components/JDF.java
private int IranianDateToJDN() {
        IranianCalendar();
        return (gregorianDateToJDN(gYear, 3, march) + (irMonth - 1) * 31
                - irMonth / 7 * (irMonth - 7) + irDay - 1);
    }
/**
     * IranianDateToJDN: Converts a date of the Iranian calendar to the Julian
     * Day Number. It first invokes the 'IranianCalender' private method to
     * convert the Iranian date to Gregorian date and then returns the Julian
     * Day Number based on the Gregorian date. The Iranian date is obtained from
     * 'irYear'(1-3100),'irMonth'(1-12) and 'irDay'(1-29/31).
     *
     * @return long (Julian Day Number)
     */
Converts a date of the Iranian calendar to the Julian
Day Number. It first invokes the 'IranianCalender' private method to
convert the Iranian date to Gregorian date and then returns the Julian
Day Number based on the Gregorian date.

@return long (Julian Day Number)
Converts a date of the Iranian calendar to the Julian Day Number . It first invokes the ' IranianCalender ' private method to convert the Iranian date to Gregorian date and then returns the Julian Day Number based on the Gregorian date . @return long ( Julian Day Number )
private int IranianDateToJDN() {
        IranianCalendar();
        return (gregorianDateToJDN(gYear, 3, march) + (irMonth - 1) * 31
                - irMonth / 7 * (irMonth - 7) + irDay - 1);
    }
private int IranianDateToJDN ( ) { IranianCalendar ( ) ; return ( gregorianDateToJDN ( gYear , 3 , march ) + ( irMonth - 1 ) * 31 - irMonth / 7 * ( irMonth - 7 ) + irDay - 1 ) ; }
IranianDateToJDN: Converts a date of the Iranian calendar to the Julian
 Day Number.
IranianDateToJDN : Converts a date of the Iranian calendar to the Julian Day Number .