public static my_from_fixed ( int &month, int &year, int date ) : void | ||
month | int | The output value giving the Hebrew month. /// |
year | int | The output value giving the Hebrew year. /// |
date | int | An integer value specifying the fixed day /// number. |
리턴 | void |
public static int month_from_fixed(int date) { int result; int num; CCHebrewCalendar.my_from_fixed(out result, out num, date); return(result); }
/// <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 years /// between 5343 A.M. and 6000 A.M., inclusive. /// </exception> public override int GetMonth(DateTime time) { M_CheckDateTime(time); int rd = CCFixed.FromDateTime(time); int ccmonth, year; CCHebrewCalendar.my_from_fixed(out ccmonth, out year, rd); return(M_Month(ccmonth, year)); }
/// <summary>Returns the month in the specified <see cref="T:System.DateTime" />.</summary> /// <returns>An integer from 1 to 13 that represents the month in the specified <see cref="T:System.DateTime" />.</returns> /// <param name="time">The <see cref="T:System.DateTime" /> to read. </param> /// <exception cref="T:System.ArgumentOutOfRangeException"> /// <paramref name="time" /> is less than <see cref="P:System.Globalization.HebrewCalendar.MinSupportedDateTime" /> or greater than <see cref="P:System.Globalization.HebrewCalendar.MaxSupportedDateTime" />.</exception> public override int GetMonth(DateTime time) { this.M_CheckDateTime(time); int date = CCFixed.FromDateTime(time); int ccmonth; int year; CCHebrewCalendar.my_from_fixed(out ccmonth, out year, date); return(this.M_Month(ccmonth, year)); }
public static void dmy_from_fixed(out int day, out int month, out int year, int date) { CCHebrewCalendar.my_from_fixed(out month, out year, date); day = date - CCHebrewCalendar.fixed_from_dmy(1, month, year) + 1; }