public static day_of_week ( int date ) : DayOfWeek | ||
date | int | An integer representing the fixed day number. /// |
Résultat | DayOfWeek |
/// <summary> /// Overriden. Gets the day of the week from the specified date. /// </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 1 A.P. and 9999 C.E., inclusive. /// </exception> public override DayOfWeek GetDayOfWeek(DateTime time) { M_CheckDateTime(time); int rd = CCFixed.FromDateTime(time); return((DayOfWeek)CCFixed.day_of_week(rd)); }
/// <summary> /// Overriden. Gets the day of the week from the specified date. /// </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 /// supported range of the Hijri calendar. /// </exception> public override DayOfWeek GetDayOfWeek(DateTime time) { int rd = M_FromDateTime(time); M_CheckFixedHijri("time", rd); return((DayOfWeek)CCFixed.day_of_week(rd)); }
/// <summary>Returns the day of the week in the specified <see cref="T:System.DateTime" /> object.</summary> /// <returns>A <see cref="T:System.DayOfWeek" /> value that represents the day of the week in the specified <see cref="T:System.DateTime" /> object.</returns> /// <param name="time">The <see cref="T:System.DateTime" /> to read. </param> public override DayOfWeek GetDayOfWeek(DateTime time) { this.M_CheckDateTime(time); int date = CCFixed.FromDateTime(time); return(CCFixed.day_of_week(date)); }
/// <summary>Calculates on which day of the week a specified date occurs.</summary> /// <returns>A <see cref="T:System.DayOfWeek" /> value that represents the day of the week specified by the <paramref name="time" /> parameter.</returns> /// <param name="time">The <see cref="T:System.DateTime" /> to read. The <see cref="T:System.Globalization.UmAlQuraCalendar" /> class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 05/13/2029 23:59:59 (Gregorian date).</param> /// <exception cref="T:System.ArgumentOutOfRangeException"> /// <paramref name="time" /> is outside the range supported by this calendar. </exception> public override DayOfWeek GetDayOfWeek(DateTime time) { int num = this.M_FromDateTime(time); this.M_CheckFixedHijri("time", num); return(CCFixed.day_of_week(num)); }
public static int kday_on_or_before(int date, int k) { return(date - (int)CCFixed.day_of_week(date - k)); }