date_difference() public static method

The method computes the difference between two Hebrew dates.
public static date_difference ( int dayA, int monthA, int yearA, int dayB, int monthB, int yearB ) : int
dayA int The integer parameter gives the day of month /// of the first date. ///
monthA int The integer parameter gives the Hebrew /// month of the first date. ///
yearA int The integer parameter gives the Hebrew /// year of the first date. ///
dayB int The integer parameter gives the day of month /// of the second date. ///
monthB int The integer parameter gives the Hebrew /// month of the second date. ///
yearB int The integer parameter gives the Hebrew /// year of the second date. ///
return int
Ejemplo n.º 1
0
 public static int days_remaining(int day, int month, int year)
 {
     return(CCHebrewCalendar.date_difference(day, month, year, 1, 7, year + 1) - 1);
 }
Ejemplo n.º 2
0
 public static int day_number(int day, int month, int year)
 {
     return(CCHebrewCalendar.date_difference(1, 7, year, day, month, year) + 1);
 }