System.Globalization.CCHijriCalendar.my_from_fixed C# (CSharp) Method

my_from_fixed() public static method

The method computes the Islamic year and month from a fixed day number.
public static my_from_fixed ( int &month, int &year, int date ) : void
month int The output value giving the Islamic month. ///
year int The output value giving the Islamic year. ///
date int An integer value specifying the fixed day /// number.
return void
	public static void my_from_fixed(out int month, out int year, int date)
	{
		year = year_from_fixed(date);

		int m = 1+(int)System.Math.Ceiling(
			((double)(date-29-fixed_from_dmy(1,1,year)))/29.5);

		month = m < 12 ? m : 12;
	}
	

Usage Example

        public static int month_from_fixed(int date)
        {
            int result;
            int num;

            CCHijriCalendar.my_from_fixed(out result, out num, date);
            return(result);
        }
All Usage Examples Of System.Globalization.CCHijriCalendar::my_from_fixed