System.Globalization.CCFixed.day_of_week C# (CSharp) Method

day_of_week() public static method

The static method computes the T:DayOfWeek.
public static day_of_week ( int date ) : DayOfWeek
date int An integer representing the fixed day number. ///
return DayOfWeek
	public static DayOfWeek day_of_week(int date) {
		return (DayOfWeek)CCMath.mod(date, 7);
	}

Usage Example

Example #1
0
        /// <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));
        }
All Usage Examples Of System.Globalization.CCFixed::day_of_week