public static new_year_delay ( int year ) : int | ||
year | int | An integer that gives the Hebrew year. /// |
Résultat | int |
public static int fixed_from_dmy(int day, int month, int year) { int num = -1373428; num += CCHebrewCalendar.elapsed_days(year); num += CCHebrewCalendar.new_year_delay(year); if (month < 7) { int num2 = CCHebrewCalendar.last_month_of_year(year); for (int i = 7; i <= num2; i++) { num += CCHebrewCalendar.last_day_of_month(i, year); } for (int i = 1; i < month; i++) { num += CCHebrewCalendar.last_day_of_month(i, year); } } else { for (int i = 7; i < month; i++) { num += CCHebrewCalendar.last_day_of_month(i, year); } } return(num + day); }