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

month_from_fixed() public static method

A method computing the Islamic month from a fixed day number.
public static month_from_fixed ( int date ) : int
date int An integer specifying the fixed day number. ///
return int
	public static int month_from_fixed(int date) {
		int month, year;

		my_from_fixed(out month, out year, date);
		return month;
	}

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Overridden. Gives the number of the month of the specified
        /// date.
        /// </summary>
        /// <param name="time">The
        /// <see cref="T:System.DateTime"/> that specifies a
        /// date.
        /// </param>
        /// <returns>An integer representing the month,
        /// starting with 1.</returns>
        /// <exception cref="T:System.ArgumentOutOfRangeException">
        /// The exception is thrown if the
        /// <see cref="T:System.DateTime"/> parameter is not in the
        /// supported range of the Hijri calendar.
        /// </exception>
        public override int GetMonth(DateTime time)
        {
            int rd = M_FromDateTime(time);

            M_CheckFixedHijri("time", rd);
            return(CCHijriCalendar.month_from_fixed(rd));
        }
All Usage Examples Of System.Globalization.CCHijriCalendar::month_from_fixed