class UmAlQuraCalendar

in global :: System . Globalization

Represents the Saudi Hijri (Um Al Qura) calendar.


public DateTime AddMonths( DateTime time, int months )

Calculates a date that is a specified number of months away from a specified initial date.

  • time The date to which to add months. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • months The positive or negative number of months to add.
  • Returns The date yielded by adding the number of months specified by the parameter to the date specified by the parameter.

public DateTime AddYears( DateTime time, int years )

Calculates a date that is a specified number of years away from a specified initial date.

  • time The date to which to add years. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • years The positive or negative number of years to add.
  • Returns The date yielded by adding the number of years specified by the parameter to the date specified by the parameter.

public CalendarAlgorithmType AlgorithmType { get; }

Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.

  • Returns Always returns .

public int[] Eras { get; }

Gets a list of the eras that are supported by the current .

  • Returns An array that consists of a single element having a value that is .

public int GetDayOfMonth( DateTime time )

Calculates the day of the month on which a specified date occurs.

  • time The date value to read. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • Returns An integer from 1 through 30 that represents the day of the month specified by the parameter.

public DayOfWeek GetDayOfWeek( DateTime time )

Calculates the day of the week on which a specified date occurs.

  • time The date value to read. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • Returns A value that represents the day of the week specified by the parameter.

public int GetDayOfYear( DateTime time )

Calculates the day of the year on which a specified date occurs.

  • time The date value to read. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • Returns An integer from 1 through 355 that represents the day of the year specified by the parameter.

public int GetDaysInMonth( int year, int month, int era )

Calculates the number of days in the specified month of the specified year and era.

  • year A year.
  • month An integer from 1 through 12 that represents a month.
  • era An era. Specify or .
  • Returns The number of days in the specified month in the specified year and era. The return value is 29 in a common year and 30 in a leap year.

public int GetDaysInYear( int year, int era )

Calculates the number of days in the specified year of the specified era.

  • year A year.
  • era An era. Specify or .
  • Returns The number of days in the specified year and era. The number of days is 354 in a common year or 355 in a leap year.

public int GetEra( DateTime time )

Calculates the era in which a specified date occurs.

  • time The date value to read.
  • Returns Always returns the value.

public int GetLeapMonth( int year, int era )

Calculates the leap month for a specified year and era.

  • year A year.
  • era An era. Specify or .
  • Returns Always 0 because the class does not support leap months.

public int GetMonth( DateTime time )

Calculates the month in which a specified date occurs.

  • time The date value to read. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • Returns An integer from 1 through 12 that represents the month in the date specified by the parameter.

public int GetMonthsInYear( int year, int era )

Calculates the number of months in the specified year of the specified era.

  • year A year.
  • era An era. Specify or .
  • Returns Always 12.

public int GetYear( DateTime time )

Calculates the year of a date represented by a specified .

  • time The date value to read. The class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
  • Returns An integer that represents the year specified by the parameter.

public bool IsLeapDay( int year, int month, int day, int era )

Determines whether the specified date is a leap day.

  • year A year.
  • month An integer from 1 through 12 that represents a month.
  • day An integer from 1 through 30 that represents a day.
  • era An era. Specify or .
  • Returns if the specified day is a leap day; otherwise, . The return value is always because the class does not support leap days.

public bool IsLeapMonth( int year, int month, int era )

Determines whether the specified month in the specified year and era is a leap month.

  • year A year.
  • month An integer from 1 through 12 that represents a month.
  • era An era. Specify or .
  • Returns Always because the class does not support leap months.

public bool IsLeapYear( int year, int era )

Determines whether the specified year in the specified era is a leap year.

  • year A year.
  • era An era. Specify or .
  • Returns if the specified year is a leap year; otherwise, .

public DateTime MaxSupportedDateTime { get; }

Gets the latest date and time supported by this calendar.

  • Returns The latest date and time supported by the class, which is equivalent to the last moment of November 16, 2077 C.E. in the Gregorian calendar.

public DateTime MinSupportedDateTime { get; }

Gets the earliest date and time supported by this calendar.

  • Returns The earliest date and time supported by the class, which is equivalent to the first moment of April 30, 1900 C.E. in the Gregorian calendar.

public DateTime ToDateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, int era )

Returns a that is set to the specified date, time, and era.

  • year A year.
  • month An integer from 1 through 12 that represents a month.
  • day An integer from 1 through 29 that represents a day.
  • hour An integer from 0 through 23 that represents an hour.
  • minute An integer from 0 through 59 that represents a minute.
  • second An integer from 0 through 59 that represents a second.
  • millisecond An integer from 0 through 999 that represents a millisecond.
  • era An era. Specify or .
  • Returns The that is set to the specified date and time in the current era.

public int ToFourDigitYear( int year )

Converts the specified year to a four-digit year by using the property to determine the appropriate century.

  • year A 2-digit year from 0 through 99, or a 4-digit Um Al Qura calendar year from 1318 through 1450.
  • Returns If the parameter is a 2-digit year, the return value is the corresponding 4-digit year. If the parameter is a 4-digit year, the return value is the unchanged parameter.

public int TwoDigitYearMax { get; set; }

Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.

  • Returns The last year of a 100-year range that can be represented by a 2-digit year.

public static int UmAlQuraEra

Represents the current era. This field is constant.

public DateTime AddMilliseconds( DateTime time, double milliseconds )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public DateTime ToDateTime( int year, int month, int day, int hour, int minute, int second, int millisecond )

😔 No documentation found.

public bool IsLeapYear( int year )

😔 No documentation found.

public int GetLeapMonth( int year )

😔 No documentation found.

public bool IsLeapMonth( int year, int month )

😔 No documentation found.

public bool IsLeapDay( int year, int month, int day )

😔 No documentation found.

public int GetWeekOfYear( DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek )

😔 No documentation found.

public int GetSecond( DateTime time )

😔 No documentation found.

public int GetMonthsInYear( int year )

😔 No documentation found.

public int GetMinute( DateTime time )

😔 No documentation found.

public double GetMilliseconds( DateTime time )

😔 No documentation found.

public int GetHour( DateTime time )

😔 No documentation found.

public int GetDaysInYear( int year )

😔 No documentation found.

public int GetDaysInMonth( int year, int month )

😔 No documentation found.

public DateTime AddWeeks( DateTime time, int weeks )

😔 No documentation found.

public DateTime AddSeconds( DateTime time, int seconds )

😔 No documentation found.

public DateTime AddMinutes( DateTime time, int minutes )

😔 No documentation found.

public DateTime AddHours( DateTime time, int hours )

😔 No documentation found.

public DateTime AddDays( DateTime time, int days )

😔 No documentation found.

public UmAlQuraCalendar( )

😔 No documentation found.

public bool IsReadOnly { get; }

😔 No documentation found.

public object Clone( )

😔 No documentation found.