UmAlQuraCalendar 类

定义

表示沙特阿拉伯 (Um Al Qura) 回历。

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

注解

UmAlQuraCalendar 类与 类几乎完全相同 HijriCalendar ,只是 Um Al Qura 日历使用沙特政府许可的基于表的算法来计算日期,可以表示日期到 A.H. 年 1500 年,并且不支持属性 HijriAdjustment

注意

有关在.NET Framework中使用 UmAlQuraCalendar 类和其他日历类的信息,请参阅使用日历

UmAlQuraCalendar对于班级,每个月有 29 天或 30 天,但通常没有明显的顺序。 虽然回历的文档提供了一个表,显示每个月的相应日期,但不能为 Um Al Qura 日历生成此类常规表。

有关 Hijri 日历的详细信息,请参阅 HijriCalendar 类。

注意UmAlQuraCalendar 仅支持从 04/30/1900 00.00.00 (公历日期) 到 2077/11/16 23:59:59 (公历日期) 的日期。

构造函数

UmAlQuraCalendar()

初始化 UmAlQuraCalendar 类的新实例。

字段

CurrentEra

表示当前日历的当前纪元。 字段的值为 0。

(继承自 Calendar)
UmAlQuraEra

表示当前纪元。 此字段为常数。

属性

AlgorithmType

获取一个值,该值指示当前日历是阳历、阴历还是二者的组合。

AlgorithmType

获取一个值,该值指示当前日历是阳历、阴历还是二者的组合。

(继承自 Calendar)
DaysInYearBeforeMinSupportedYear

获取 MinSupportedDateTime 属性指定的年份之前的年中天数。

DaysInYearBeforeMinSupportedYear

获取 MinSupportedDateTime 属性指定的年份之前的年中天数。

(继承自 Calendar)
Eras

获取当前 UmAlQuraCalendar 支持的纪元的列表。

IsReadOnly

获取一个值,该值指示此 Calendar 对象是否为只读。

(继承自 Calendar)
MaxSupportedDateTime

获取此日历支持的最晚日期和时间。

MinSupportedDateTime

获取此日历支持的最早日期和时间。

TwoDigitYearMax

获取或设置可以用两位数年份表示的 100 年范围内的最后一年。

方法

AddDays(DateTime, Int32)

返回与指定 DateTime 相距指定天数的 DateTime

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

返回与指定 DateTime 相距指定小时数的 DateTime

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

返回与指定 DateTime 相距指定毫秒数的 DateTime

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

返回与指定 DateTime 相距指定分钟数的 DateTime

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

计算与指定初始日期相距指定月数的日期。

AddSeconds(DateTime, Int32)

返回与指定 DateTime 相距指定秒数的 DateTime

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

返回与指定 DateTime 相距指定周数的 DateTime

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

计算与指定初始日期相距指定年数的日期。

Clone()

创建表示当前 Calendar 对象副本的新对象。

(继承自 Calendar)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetDayOfMonth(DateTime)

计算指定日期出现在月中的哪一天。

GetDayOfWeek(DateTime)

计算指定日期出现在星期几。

GetDayOfYear(DateTime)

计算指定日期出现在年中的哪一天。

GetDaysInMonth(Int32, Int32)

返回当前纪元的指定月份和年份中的天数。

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

计算指定纪元年份的指定月份中的天数。

GetDaysInYear(Int32)

返回当前纪元中指定年份的天数。

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

计算指定纪元的指定年份中的天数。

GetEra(DateTime)

计算指定日期出现在哪个纪元。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetHour(DateTime)

返回指定 DateTime 中的小时值。

(继承自 Calendar)
GetLeapMonth(Int32)

计算指定年份的闰月。

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

计算指定纪元年份的闰月。

GetMilliseconds(DateTime)

返回指定 DateTime 中的毫秒值。

(继承自 Calendar)
GetMinute(DateTime)

返回指定 DateTime 中的分钟值。

(继承自 Calendar)
GetMonth(DateTime)

计算指定日期出现在哪个月份中。

GetMonthsInYear(Int32)

返回当前纪元中指定年份的月数。

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

计算指定纪元的指定年份中的月数。

GetSecond(DateTime)

返回指定 DateTime 中的秒值。

(继承自 Calendar)
GetType()

获取当前实例的 Type

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

返回一年中包含指定 DateTime 值中的日期的那个星期。

(继承自 Calendar)
GetYear(DateTime)

计算由指定 DateTime 表示的日期所在的年份。

IsLeapDay(Int32, Int32, Int32)

确定当前纪元中的指定日期是否为闰日。

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

确定指定的日期是否为闰日。

IsLeapMonth(Int32, Int32)

确定当前纪元中指定年份的指定月份是否为闰月。

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

确定指定纪元年份中的指定月份是否为闰月。

IsLeapYear(Int32)

确定当前纪元中的指定年份是否为闰年。

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

确定指定纪元中的指定年份是否为闰年。

MemberwiseClone()

创建当前 Object 的浅表副本。

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

返回设置为当前纪元中指定日期和时间的 DateTime

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

返回设置为指定的日期、时间和纪元的 DateTime

ToFourDigitYear(Int32)

使用 TwoDigitYearMax 属性将指定的年份转换为四位数年份,以确定相应的纪元。

ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅