System.Globalization.CCHebrewCalendar.day_from_fixed C# (CSharp) Méthode

day_from_fixed() public static méthode

A method computing the day of the month from a fixed day number.
public static day_from_fixed ( int date ) : int
date int An integer specifying the fixed day number. ///
Résultat int
	public static int day_from_fixed(int date) {
		int day, month, year;
		
		dmy_from_fixed(out day, out month, out year, date);
		return day;
	}

Usage Example

Exemple #1
0
        /// <summary>
        /// Overriden. Gets the day of the month from
        /// <paramref name="time"/>.
        /// </summary>
        /// <param name="time">The
        /// <see cref="T:System.DateTime"/> that specifies a
        /// date.
        /// </param>
        /// <returns>An integer giving the day of months, 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 years
        /// between 5343 A.M. and 6000 A.M., inclusive.
        /// </exception>
        public override int GetDayOfMonth(DateTime time)
        {
            M_CheckDateTime(time);
            int rd = CCFixed.FromDateTime(time);

            return(CCHebrewCalendar.day_from_fixed(rd));
        }