UmAlQuraCalendar 类

定义

表示沙特阿拉伯回历 (Um Al Qura)。Represents the Saudi Hijri (Um Al Qura) calendar.

public ref class UmAlQuraCalendar : System::Globalization::Calendar
[System.Serializable]
public class UmAlQuraCalendar : System.Globalization.Calendar
type UmAlQuraCalendar = class
    inherit Calendar
Public Class UmAlQuraCalendar
Inherits Calendar
继承
UmAlQuraCalendar
属性

注解

类与HijriCalendar类几乎完全相同, 不同之处在于, 古兰经历使用从沙特阿拉伯政府获得的基于表的算法来计算日期, 可以将日期表示为1500年, 而不支持UmAlQuraCalendar HijriAdjustment属性。The UmAlQuraCalendar class is nearly identical to the HijriCalendar class, except the Um Al Qura calendar uses a table-based algorithm licensed from the Saudi government to calculate dates, can express dates to the year 1500 A.H., and does not support the HijriAdjustment property.

备注

有关使用 .NET Framework 中的UmAlQuraCalendar类和其他 calendar 类的信息, 请参阅使用日历For information about using the UmAlQuraCalendar class and the other calendar classes in the .NET Framework, see Working with Calendars.

UmAlQuraCalendar对于类, 每个月有29或30天, 但通常不是任何可辨识的顺序。For the UmAlQuraCalendar class, each month has either 29 or 30 days, but usually in no discernible order. 虽然回历的文档提供了一个表, 其中显示了每个月中的相应日期, 但不能为古兰经历生成此类通用表。Whereas the documentation for the Hijri Calendar gives a table that shows the corresponding days in each month, no such general table can be produced for the Um Al Qura calendar.

有关回历的详细信息, 请参阅HijriCalendar类。For more information about the Hijri calendar, see the HijriCalendar class.

注意UmAlQuraCalendar类仅支持从 04/30/1900 00.00.00 (公历日期) 到 11/16/2077 23:59:59 (公历日期) 的日期。Note The UmAlQuraCalendar class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).

构造函数

UmAlQuraCalendar()

初始化 UmAlQuraCalendar 类的新实例。Initializes a new instance of the UmAlQuraCalendar class.

字段

CurrentEra

表示当前日历的当前纪元。Represents the current era of the current calendar. 字段的值为 0。The value of this field is 0.

(继承自 Calendar)
UmAlQuraEra

表示当前纪元。Represents the current era. 此字段为常数。This field is constant.

属性

AlgorithmType

获取一个值,该值指示当前日历是阳历、阴历还是二者的组合。Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.

DaysInYearBeforeMinSupportedYear

获取 MinSupportedDateTime 属性指定的年份之前的年中天数。Gets the number of days in the year that precedes the year that is specified by the MinSupportedDateTime property.

Eras

获取当前 UmAlQuraCalendar 支持的纪元的列表。Gets a list of the eras that are supported by the current UmAlQuraCalendar.

IsReadOnly

获取一个值,该值指示此 Calendar 对象是否为只读。Gets a value indicating whether this Calendar object is read-only.

(继承自 Calendar)
MaxSupportedDateTime

获取此日历支持的最晚日期和时间。Gets the latest date and time supported by this calendar.

MinSupportedDateTime

获取此日历支持的最早日期和时间。Gets the earliest date and time supported by this calendar.

TwoDigitYearMax

获取或设置可以用两位数年份表示的 100 年范围内的最后一年。Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.

方法

AddDays(DateTime, Int32)

返回与指定 DateTime 相距指定天数的 DateTimeReturns a DateTime that is the specified number of days away from the specified DateTime.

(继承自 Calendar)
AddHours(DateTime, Int32)

返回与指定 DateTime 相距指定小时数的 DateTimeReturns a DateTime that is the specified number of hours away from the specified DateTime.

(继承自 Calendar)
AddMilliseconds(DateTime, Double)

返回与指定 DateTime 相距指定毫秒数的 DateTimeReturns a DateTime that is the specified number of milliseconds away from the specified DateTime.

(继承自 Calendar)
AddMinutes(DateTime, Int32)

返回与指定 DateTime 相距指定分钟数的 DateTimeReturns a DateTime that is the specified number of minutes away from the specified DateTime.

(继承自 Calendar)
AddMonths(DateTime, Int32)

计算与指定初始日期相距指定月数的日期。Calculates a date that is a specified number of months away from a specified initial date.

AddSeconds(DateTime, Int32)

返回与指定 DateTime 相距指定秒数的 DateTimeReturns a DateTime that is the specified number of seconds away from the specified DateTime.

(继承自 Calendar)
AddWeeks(DateTime, Int32)

返回与指定 DateTime 相距指定周数的 DateTimeReturns a DateTime that is the specified number of weeks away from the specified DateTime.

(继承自 Calendar)
AddYears(DateTime, Int32)

计算与指定初始日期相距指定年数的日期。Calculates a date that is a specified number of years away from a specified initial date.

Clone()

创建表示当前 Calendar 对象副本的新对象。Creates a new object that is a copy of the current Calendar object.

(继承自 Calendar)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetDayOfMonth(DateTime)

计算指定日期出现在月中的哪一天。Calculates the day of the month on which a specified date occurs.

GetDayOfWeek(DateTime)

计算指定日期出现在星期几。Calculates the day of the week on which a specified date occurs.

GetDayOfYear(DateTime)

计算指定日期出现在年中的哪一天。Calculates the day of the year on which a specified date occurs.

GetDaysInMonth(Int32, Int32)

返回当前纪元的指定月份和年份中的天数。Returns the number of days in the specified month and year of the current era.

(继承自 Calendar)
GetDaysInMonth(Int32, Int32, Int32)

计算指定纪元年份的指定月份中的天数。Calculates the number of days in the specified month of the specified year and era.

GetDaysInYear(Int32)

返回当前纪元中指定年份的天数。Returns the number of days in the specified year of the current era.

(继承自 Calendar)
GetDaysInYear(Int32, Int32)

计算指定纪元的指定年份中的天数。Calculates the number of days in the specified year of the specified era.

GetEra(DateTime)

计算指定日期出现在哪个纪元。Calculates the era in which a specified date occurs.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetHour(DateTime)

返回指定 DateTime 中的小时值。Returns the hours value in the specified DateTime.

(继承自 Calendar)
GetLeapMonth(Int32)

计算指定年份的闰月。Calculates the leap month for a specified year.

(继承自 Calendar)
GetLeapMonth(Int32, Int32)

计算指定纪元年份的闰月。Calculates the leap month for a specified year and era.

GetMilliseconds(DateTime)

返回指定 DateTime 中的毫秒值。Returns the milliseconds value in the specified DateTime.

(继承自 Calendar)
GetMinute(DateTime)

返回指定 DateTime 中的分钟值。Returns the minutes value in the specified DateTime.

(继承自 Calendar)
GetMonth(DateTime)

计算指定日期出现在哪个月份中。Calculates the month in which a specified date occurs.

GetMonthsInYear(Int32)

返回当前纪元中指定年份的月数。Returns the number of months in the specified year in the current era.

(继承自 Calendar)
GetMonthsInYear(Int32, Int32)

计算指定纪元的指定年份中的月数。Calculates the number of months in the specified year of the specified era.

GetSecond(DateTime)

返回指定 DateTime 中的秒值。Returns the seconds value in the specified DateTime.

(继承自 Calendar)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek)

返回一年中包含指定 DateTime 值中的日期的那个星期。Returns the week of the year that includes the date in the specified DateTime value.

(继承自 Calendar)
GetYear(DateTime)

计算由指定 DateTime 表示的日期所在的年份。Calculates the year of a date represented by a specified DateTime.

IsLeapDay(Int32, Int32, Int32)

确定当前纪元中的指定日期是否为闰日。Determines whether the specified date in the current era is a leap day.

(继承自 Calendar)
IsLeapDay(Int32, Int32, Int32, Int32)

确定指定的日期是否为闰日。Determines whether the specified date is a leap day.

IsLeapMonth(Int32, Int32)

确定当前纪元中指定年份的指定月份是否为闰月。Determines whether the specified month in the specified year in the current era is a leap month.

(继承自 Calendar)
IsLeapMonth(Int32, Int32, Int32)

确定指定纪元年份中的指定月份是否为闰月。Determines whether the specified month in the specified year and era is a leap month.

IsLeapYear(Int32)

确定当前纪元中的指定年份是否为闰年。Determines whether the specified year in the current era is a leap year.

(继承自 Calendar)
IsLeapYear(Int32, Int32)

确定指定纪元中的指定年份是否为闰年。Determines whether the specified year in the specified era is a leap year.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

返回设置为当前纪元中指定日期和时间的 DateTimeReturns a DateTime that is set to the specified date and time in the current era.

(继承自 Calendar)
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

返回设置为指定的日期、时间和纪元的 DateTimeReturns a DateTime that is set to the specified date, time, and era.

ToFourDigitYear(Int32)

使用 TwoDigitYearMax 属性将指定的年份转换为四位数年份,以确定相应的纪元。Converts the specified year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅