System.Globalization.Calendars
Represents time in divisions, such as months, days, and years. Years are calculated using the Chinese calendar, while days and months are calculated using the lunisolar calendar.
Initializes a new instance of the class.
Gets the eras that correspond to the range of dates and times supported by the current object.
An array of 32-bit signed integers that specify the relevant eras. The return value for a object is always an array containing one element equal to the value.
Retrieves the era that corresponds to the specified type.
An integer that represents the era in the parameter.
The type to read.
is less than or greater than .
Gets the maximum date and time supported by the class.
A type that represents the last moment on January 28, 2101 in the Gregorian calendar, which is approximately equal to the constructor DateTime(2101, 1, 28, 23, 59, 59, 999).
Gets the minimum date and time supported by the class.
A type that represents February 19, 1901 in the Gregorian calendar, which is equivalent to the constructor, DateTime(1901, 2, 19).
Represents a calendar that divides time into months, days, years, and eras, and has dates that are based on cycles of the sun and the moon.
Calculates the date that is the specified number of months away from the specified date.
A new that results from adding the specified number of months to the parameter.
The to which to add .
The number of months to add.
The result is outside the supported range of a .
is less than -120000 or greater than 120000. -or- is less than or greater than .
Calculates the date that is the specified number of years away from the specified date.
A new that results from adding the specified number of years to the parameter.
The to which to add .
The number of years to add.
The result is outside the supported range of a .
is less than or greater than .
Calculates the celestial stem of the specified year in the sexagenary (60-year) cycle.
A number from 1 through 10.
An integer from 1 through 60 that represents a year in the sexagenary cycle.
is less than 1 or greater than 60.
Calculates the day of the month in the specified date.
An integer from 1 through 31 that represents the day of the month specified in the parameter.
The to read.
Calculates the day of the week in the specified date.
One of the values that represents the day of the week specified in the parameter.
The to read.
is less than or greater than .
Calculates the day of the year in the specified date.
An integer from 1 through 354 in a common year, or 1 through 384 in a leap year, that represents the day of the year specified in the parameter.
The to read.
Calculates the number of days in the specified month of the specified year and era.
The number of days in the specified month of the specified year and era.
An integer that represents the year.
An integer from 1 through 12 in a common year, or 1 through 13 in a leap year, that represents the month.
An integer that represents the era.
, , or is outside the range supported by this calendar.
Calculates the number of days in the specified year and era.
The number of days in the specified year and era.
An integer that represents the year.
An integer that represents the era.
or is outside the range supported by this calendar.
Calculates the leap month for the specified year and era.
A positive integer from 1 through 13 that indicates the leap month in the specified year and era. -or-Zero if this calendar does not support a leap month, or if the and parameters do not specify a leap year.
An integer that represents the year.
An integer that represents the era.
Returns the month in the specified date.
An integer from 1 to 13 that represents the month specified in the parameter.
The to read.
Calculates the number of months in the specified year and era.
The number of months in the specified year in the specified era. The return value is 12 months in a common year or 13 months in a leap year.
An integer that represents the year.
An integer that represents the era.
or is outside the range supported by this calendar.
Calculates the year in the sexagenary (60-year) cycle that corresponds to the specified date.
A number from 1 through 60 in the sexagenary cycle that corresponds to the parameter.
A to read.
Calculates the terrestrial branch of the specified year in the sexagenary (60-year) cycle.
An integer from 1 through 12.
An integer from 1 through 60 that represents a year in the sexagenary cycle.
is less than 1 or greater than 60.
Returns the year in the specified date.
An integer that represents the year in the specified .
The to read.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 through 13 that represents the month.
An integer from 1 through 31 that represents the day.
An integer that represents the era.
, , , or is outside the range supported by this calendar.
Determines whether the specified month in the specified year and era is a leap month.
true if the parameter is a leap month; otherwise, false.
An integer that represents the year.
An integer from 1 through 13 that represents the month.
An integer that represents the era.
, , or is outside the range supported by this calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
or is outside the range supported by this calendar.
Returns a that is set to the specified date, time, and era.
A that is set to the specified date, time, and era.
An integer that represents the year.
An integer from 1 through 13 that represents the month.
An integer from 1 through 31 that represents the day.
An integer from 0 through 23 that represents the hour.
An integer from 0 through 59 that represents the minute.
An integer from 0 through 59 that represents the second.
An integer from 0 through 999 that represents the millisecond.
An integer that represents the era.
, , , , , , , or is outside the range supported by this calendar.
Converts the specified year to a four-digit year.
An integer that contains the four-digit representation of the parameter.
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by this calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The current is read-only.
The value in a set operation is less than 99 or greater than the maximum supported year in the current calendar.
Represents the Gregorian calendar.
Initializes a new instance of the class using the default value.
Initializes a new instance of the class using the specified value.
The value that denotes which language version of the calendar to create.
is not a member of the enumeration.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add months.
The number of months to add.
The resulting is outside the supported range.
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add years.
The number of years to add.
The resulting is outside the supported range.
Gets or sets the value that denotes the language version of the current .
A value that denotes the language version of the current .
The value specified in a set operation is not a member of the enumeration.
In a set operation, the current instance is read-only.
Gets the list of eras in the .
An array of integers that represents the eras in the .
Returns the day of the month in the specified .
An integer from 1 to 31 that represents the day of the month in .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 366 that represents the day of the year in .
The to read.
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the era in the specified .
An integer that represents the era in .
The to read.
Calculates the leap month for a specified year and era.
Always 0 because the Gregorian calendar does not recognize leap months.
A year.
An era. Specify either or GregorianCalendar.Eras[Calendar.CurrentEra].
is less than the Gregorian calendar year 1 or greater than the Gregorian calendar year 9999.-or- is not or GregorianCalendar.Eras[Calendar.CurrentEra].
Returns the month in the specified .
An integer from 1 to 12 that represents the month in .
The to read.
Returns the number of months in the specified year in the specified era.
The number of months in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the year in the specified .
An integer that represents the year in .
The to read.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer that represents the era.
is outside the range supported by the calendar. -or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
This method always returns false, unless overridden by a derived class.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Gets the latest date and time supported by the type.
The latest date and time supported by the type, which is the last moment of December 31, 9999 C.E. and is equivalent to .
Gets the earliest date and time supported by the type.
The earliest date and time supported by the type, which is the first moment of January 1, 0001 C.E. and is equivalent to .
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by the calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than MaxSupportedDateTime.Year.
In a set operation, the current instance is read-only.
Defines the different language versions of the Gregorian calendar.
Refers to the Arabic version of the Gregorian calendar.
Refers to the localized version of the Gregorian calendar, based on the language of the that uses the .
Refers to the Middle East French version of the Gregorian calendar.
Refers to the transliterated English version of the Gregorian calendar.
Refers to the transliterated French version of the Gregorian calendar.
Refers to the U.S. English version of the Gregorian calendar.
Represents the Hebrew calendar.
Initializes a new instance of the class.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add .
The number of months to add.
The resulting is outside the supported range.
is less than -120,000 or greater than 120,000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add .
The number of years to add.
The resulting is outside the supported range.
Gets the list of eras in the .
An array of integers that represents the eras in the type. The return value is always an array containing one element equal to .
Returns the day of the month in the specified .
An integer from 1 to 30 that represents the day of the month in the specified .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in the specified .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 385 that represents the day of the year in the specified .
The to read.
is earlier than September 17, 1583 in the Gregorian calendar, or greater than .
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 13 that represents the month.
An integer that represents the era. Specify either or Calendar.Eras[Calendar.CurrentEra].
, , or is outside the range supported by the current object.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra].
or is outside the range supported by the current object.
Returns the era in the specified .
An integer that represents the era in the specified . The return value is always .
The to read.
Calculates the leap month for a specified year and era.
A positive integer that indicates the leap month in the specified year and era. The return value is 7 if the and parameters specify a leap year, or 0 if the year is not a leap year.
A year.
An era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra].
is not or HebrewCalendar.Eras[Calendar.CurrentEra].-or- is less than the Hebrew calendar year 5343 or greater than the Hebrew calendar year 5999.
Returns the month in the specified .
An integer from 1 to 13 that represents the month in the specified .
The to read.
is less than or greater than .
Returns the number of months in the specified year in the specified era.
The number of months in the specified year in the specified era. The return value is either 12 in a common year, or 13 in a leap year.
An integer that represents the year.
An integer that represents the era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra].
or is outside the range supported by the current object.
Returns the year in the specified value.
An integer that represents the year in the specified value.
The to read.
is outside the range supported by the current object.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 13 that represents the month.
An integer from 1 to 30 that represents the day.
An integer that represents the era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra]..
, , , or is outside the range supported by this calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
true if the specified month is a leap month; otherwise, false.
An integer that represents the year.
An integer from 1 to 13 that represents the month.
An integer that represents the era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra].
, , or is outside the range supported by this calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra].
or is outside the range supported by this calendar.
Gets the latest date and time supported by the type.
The latest date and time supported by the type, which is equivalent to the last moment of September, 29, 2239 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the type.
The earliest date and time supported by the type, which is equivalent to the first moment of January, 1, 1583 C.E. in the Gregorian calendar.
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 13 that represents the month.
An integer from 1 to 30 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era. Specify either or HebrewCalendar.Eras[Calendar.CurrentEra].
, , or is outside the range supported by the current object.-or- is less than 0 or greater than 23.-or- is less than 0 or greater than 59.-or- is less than 0 or greater than 59.-or- is less than 0 or greater than 999.
Converts the specified year to a 4-digit year by using the property to determine the appropriate century.
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.
A 2-digit year from 0 through 99, or a 4-digit Hebrew calendar year from 5343 through 5999.
is less than 0.-or- is less than or greater than .
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The current object is read-only.
In a set operation, the Hebrew calendar year value is less than 5343 but is not 99, or the year value is greater than 5999.
Represents the Hijri calendar.
Initializes a new instance of the class.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to add months to.
The number of months to add.
The resulting .
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to add years to.
The number of years to add.
The resulting is outside the supported range.
Gets the list of eras in the .
An array of integers that represents the eras in the .
Returns the day of the month in the specified .
An integer from 1 to 30 that represents the day of the month in the specified .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in the specified .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 355 that represents the day of the year in the specified .
The to read.
Returns the number of days in the specified month of the specified year and era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by this calendar. -or- is outside the range supported by this calendar.-or- is outside the range supported by this calendar.
Returns the number of days in the specified year and era.
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.
An integer that represents the year.
An integer that represents the era.
or is outside the range supported by this calendar.
Returns the era in the specified .
An integer that represents the era in the specified .
The to read.
Calculates the leap month for a specified year and era.
Always 0 because the type does not support the notion of a leap month.
A year.
An era. Specify or .
is less than the Hijri calendar year 1 or greater than the year 9666.-or- is not or .
Returns the month in the specified .
An integer from 1 to 12 that represents the month in the specified .
The to read.
Returns the number of months in the specified year and era.
The number of months in the specified year and era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by this calendar. -or- is outside the range supported by this calendar.
Returns the year in the specified .
An integer that represents the year in the specified .
The to read.
Gets or sets the number of days to add or subtract from the calendar to accommodate the variances in the start and the end of Ramadan and to accommodate the date difference between countries/regions.
An integer from -2 to 2 that represents the number of days to add or subtract from the calendar.
The property is being set to an invalid value.
Determines whether the specified date is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 30 that represents the day.
An integer that represents the era.
is outside the range supported by this calendar. -or- is outside the range supported by this calendar.-or- is outside the range supported by this calendar.-or- is outside the range supported by this calendar.
Determines whether the specified month in the specified year and era is a leap month.
This method always returns false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by this calendar. -or- is outside the range supported by this calendar.-or- is outside the range supported by this calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by this calendar. -or- is outside the range supported by this calendar.
Gets the latest date and time supported by this calendar.
The latest date and time supported by the type, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by this calendar.
The earliest date and time supported by the type, which is equivalent to the first moment of July 18, 622 C.E. in the Gregorian calendar.
Returns a that is set to the specified date, time, and era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 30 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by this calendar. -or- is outside the range supported by this calendar.-or- is outside the range supported by this calendar.-or- is outside the range supported by this calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by this calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
This calendar is read-only.
The value in a set operation is less than 100 or greater than 9666.
Represents the Japanese calendar.
Initializes a new instance of the class.
Unable to initialize a object because of missing culture information.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add months.
The number of months to add.
The resulting is outside the supported range.
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add years.
The number of years to add.
The resulting is outside the supported range.
is outside the supported range of the type.-or- is less than -10,000 or greater than 10,000.
Gets the list of eras in the .
An array of integers that represents the eras in the .
Returns the day of the month in the specified .
An integer from 1 to 31 that represents the day of the month in the specified .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in the specified .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 366 that represents the day of the year in the specified .
The to read.
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the era in the specified .
An integer that represents the era in the specified .
The to read.
The resulting is outside the supported range.
Calculates the leap month for a specified year and era.
The return value is always 0 because the type does not support the notion of a leap month.
A year.
An era.
or is outside the range supported by the type.
Returns the month in the specified .
An integer from 1 to 12 that represents the month in the specified .
The to read.
Returns the number of months in the specified year in the specified era.
The return value is always 12.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the week of the year that includes the date in the specified .
A 1-based integer that represents the week of the year that includes the date in the parameter.
The to read.
One of the values that defines a calendar week.
One of the values that represents the first day of the week.
or is outside the range supported by the calendar.-or- is not a valid value.
Returns the year in the specified .
An integer that represents the year in the specified .
The to read.
Determines whether the specified date in the specified era is a leap day.
true, if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
This method always returns false, unless overridden by a derived class.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified year in the specified era is a leap year.
true, if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Gets the latest date and time supported by the current object.
The latest date and time supported by the type, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the current object.
The earliest date and time supported by the type, which is equivalent to the first moment of September 8, 1868 C.E. in the Gregorian calendar.
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.-or- is outside the range supported by the calendar.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
An integer (usually two digits) that represents the year to convert.
is outside the range supported by the calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than 8011 (or MaxSupportedDateTime.Year).
In a set operation, the current instance is read-only.
Represents time in divisions, such as months, days, and years. Years are calculated as for the Japanese calendar, while days and months are calculated using the lunisolar calendar.
Initializes a new instance of the class.
Gets the eras that are relevant to the object.
An array of 32-bit signed integers that specify the relevant eras.
Retrieves the era that corresponds to the specified .
An integer that represents the era specified in the parameter.
The to read.
Gets the maximum date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of January 22, 2050 C.E. in the Gregorian calendar.
Gets the minimum date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of January 28, 1960 C.E. in the Gregorian calendar.
Represents the Julian calendar.
Initializes a new instance of the class.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add months.
The number of months to add.
The resulting is outside the supported range.
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add years.
The number of years to add.
The resulting is outside the supported range.
Gets the list of eras in the .
An array of integers that represents the eras in the .
Returns the day of the month in the specified .
An integer from 1 to 31 that represents the day of the month in .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 366 that represents the day of the year in .
The to read.
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar. -or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar. -or- is outside the range supported by the calendar.
Returns the era in the specified .
An integer that represents the era in .
The to read.
Calculates the leap month for a specified year and era.
A positive integer that indicates the leap month in the specified year and era. Alternatively, this method returns zero if the calendar does not support a leap month, or if and do not specify a leap year.
An integer that represents the year.
An integer that represents the era.
Returns the month in the specified .
An integer from 1 to 12 that represents the month in .
The to read.
Returns the number of months in the specified year in the specified era.
The number of months in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar. -or- is outside the range supported by the calendar.
Returns the year in the specified .
An integer that represents the year in .
The to read.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar. -or- is outside the range supported by the calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
This method always returns false, unless overridden by a derived class.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar. -or- is outside the range supported by the calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar. -or- is outside the range supported by the calendar.
Gets the latest date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of January 1, 0001 C.E. in the Gregorian calendar.
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999. -or- is outside the range supported by the calendar.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by the calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than MaxSupportedDateTime.Year.
In a set operation, the current instance is read-only.
Represents the Korean calendar.
Initializes a new instance of the class.
Unable to initialize a object because of missing culture information.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add months.
The number of months to add.
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add years.
The number of years to add.
or is out of range.
Gets the list of eras in the .
An array of integers that represents the eras in the .
Returns the day of the month in the specified .
An integer from 1 to 31 that represents the day of the month in the specified .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in the specified .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 366 that represents the day of the year in the specified .
The to read.
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the era in the specified .
An integer that represents the era in the specified .
The to read.
Calculates the leap month for a specified year and era.
The return value is always 0 because the class does not support the notion of a leap month.
A year.
An era.
Returns the month in the specified .
An integer from 1 to 12 that represents the month in the specified .
The to read.
Returns the number of months in the specified year in the specified era.
The number of months in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the week of the year that includes the date in the specified .
A 1-based integer that represents the week of the year that includes the date in the parameter.
The to read.
One of the values that defines a calendar week.
One of the values that represents the first day of the week.
or is outside the range supported by the calendar.-or- is not a valid value.
Returns the year in the specified .
An integer that represents the year in the specified .
The to read.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
This method always returns false, unless overridden by a derived class.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Gets the latest date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of January 1, 0001 C.E. in the Gregorian calendar.
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.-or- is outside the range supported by the calendar.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by the calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than MaxSupportedDateTime.Year.
In a set operation, the current instance is read-only.
Represents time in divisions, such as months, days, and years. Years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar.
Initializes a new instance of the class.
Gets the eras that correspond to the range of dates and times supported by the current object.
An array of 32-bit signed integers that specify the relevant eras. The return value for a object is always an array containing one element equal to the value.
Retrieves the era that corresponds to the specified .
An integer that represents the era specified by the parameter. The return value for a object is always the value.
The to read.
represents a date and time less than or greater than .
Gets the maximum date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of February 10, 2051 C.E. in the Gregorian calendar.
Gets the minimum date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of February 14, 918 C.E. in the Gregorian calendar.
Represents the Persian calendar.
Initializes a new instance of the class.
Returns a object that is offset the specified number of months from the specified object.
A object that represents the date yielded by adding the number of months specified by the parameter to the date specified by the parameter.
The to which to add months.
The positive or negative number of months to add.
The resulting is outside the supported range.
is less than -120,000 or greater than 120,000.
Returns a object that is offset the specified number of years from the specified object.
The object that results from adding the specified number of years to the specified object.
The to which to add years.
The positive or negative number of years to add.
The resulting is outside the supported range.
is less than -10,000 or greater than 10,000.
Gets the list of eras in a object.
An array of integers that represents the eras in a object. The array consists of a single element having a value of .
Returns the day of the month in the specified object.
An integer from 1 through 31 that represents the day of the month in the specified object.
The to read.
The parameter represents a date less than or greater than .
Returns the day of the week in the specified object.
A value that represents the day of the week in the specified object.
The to read.
Returns the day of the year in the specified object.
An integer from 1 through 366 that represents the day of the year in the specified object.
The to read.
The parameter represents a date less than or greater than .
Returns the number of days in the specified month of the specified year and era.
The number of days in the specified month of the specified year and era.
An integer from 1 through 9378 that represents the year.
An integer that represents the month, and ranges from 1 through 12 if is not 9378, or 1 through 10 if is 9378.
An integer from 0 through 1 that represents the era.
, , or is outside the range supported by this calendar.
Returns the number of days in the specified year of the specified era.
The number of days in the specified year and era. The number of days is 365 in a common year or 366 in a leap year.
An integer from 1 through 9378 that represents the year.
An integer from 0 through 1 that represents the era.
or is outside the range supported by this calendar.
Returns the era in the specified object.
Always returns .
The to read.
The parameter represents a date less than or greater than .
Returns the leap month for a specified year and era.
The return value is always 0.
An integer from 1 through 9378 that represents the year to convert.
An integer from 0 through 1 that represents the era.
or is outside the range supported by this calendar.
Returns the month in the specified object.
An integer from 1 through 12 that represents the month in the specified object.
The to read.
The parameter represents a date less than or greater than .
Returns the number of months in the specified year of the specified era.
Returns 10 if the parameter is 9378; otherwise, always returns 12.
An integer from 1 through 9378 that represents the year.
An integer from 0 through 1 that represents the era.
or is outside the range supported by this calendar.
Returns the year in the specified object.
An integer from 1 through 9378 that represents the year in the specified .
The to read.
The parameter represents a date less than or greater than .
Determines whether the specified date is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer from 1 through 9378 that represents the year.
An integer that represents the month and ranges from 1 through 12 if is not 9378, or 1 through 10 if is 9378.
An integer from 1 through 31 that represents the day.
An integer from 0 through 1 that represents the era.
, , , or is outside the range supported by this calendar.
Determines whether the specified month in the specified year and era is a leap month.
Always returns false because the class does not support the notion of a leap month.
An integer from 1 through 9378 that represents the year.
An integer that represents the month and ranges from 1 through 12 if is not 9378, or 1 through 10 if is 9378.
An integer from 0 through 1 that represents the era.
, , or is outside the range supported by this calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer from 1 through 9378 that represents the year.
An integer from 0 through 1 that represents the era.
or is outside the range supported by this calendar.
Gets the latest date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the class.
The earliest date and time supported by the class. Starting with the .NET Framework 4.6 RC, it is equivalent to the first moment of Marsh 22, 622 C.E. in the Gregorian calendar. In previous versions of the ,NET Framework, it is equivalent to the first moment of March 21, 622 C.E. in the Gregorian calendar.
Returns a object that is set to the specified date, time, and era.
A object that is set to the specified date and time in the current era.
An integer from 1 through 9378 that represents the year.
An integer from 1 through 12 that represents the month.
An integer from 1 through 31 that represents the day.
An integer from 0 through 23 that represents the hour.
An integer from 0 through 59 that represents the minute.
An integer from 0 through 59 that represents the second.
An integer from 0 through 999 that represents the millisecond.
An integer from 0 through 1 that represents the era.
, , , , , , , or is outside the range supported by this calendar.
Converts the specified year to a four-digit year representation.
An integer that contains the four-digit representation of .
An integer from 1 through 9378 that represents the year to convert.
is less than 0 or greater than 9378.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
This calendar is read-only.
The value in a set operation is less than 100 or greater than 9378.
the Taiwan calendar.
Initializes a new instance of the class.
Unable to initialize a object because of missing culture information.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add months.
The number of months to add.
The resulting is outside the supported range.
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add years.
The number of years to add.
The resulting is outside the supported range.
Gets the list of eras in the .
An array that consists of a single element for which the value is always the current era.
Returns the day of the month in the specified .
An integer from 1 to 31 that represents the day of the month in the specified .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in the specified .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 366 that represents the day of the year in the specified .
The to read.
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the era in the specified .
An integer that represents the era in the specified .
The to read.
Calculates the leap month for a specified year and era.
The return value is always 0 because the class does not support the notion of a leap month.
A year.
An era.
Returns the month in the specified .
An integer from 1 to 12 that represents the month in the specified .
The to read.
Returns the number of months in the specified year in the specified era.
The number of months in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the week of the year that includes the date in the specified .
A positive integer that represents the week of the year that includes the date in the parameter.
The to read.
One of the values that defines a calendar week.
One of the values that represents the first day of the week.
or is outside the range supported by the calendar.-or- is not a valid value.
Returns the year in the specified .
An integer that represents the year in the specified .
The to read.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
This method always returns false, unless overridden by a derived class.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Gets the latest date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of January 1, 1912 C.E. in the Gregorian calendar.
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.-or- is outside the range supported by the calendar.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by the calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than MaxSupportedDateTime.Year.
In a set operation, the current instance is read-only.
Represents the Taiwan lunisolar calendar. As for the Taiwan calendar, years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar.
Initializes a new instance of the class.
Gets the eras that are relevant to the current object.
An array that consists of a single element having a value that is always the current era.
Retrieves the era that corresponds to the specified .
An integer that represents the era specified in the parameter.
The to read.
Gets the maximum date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of February 10, 2051 C.E. in the Gregorian calendar.
Gets the minimum date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of February 18, 1912 C.E. in the Gregorian calendar.
Represents the Thai Buddhist calendar.
Initializes a new instance of the class.
Returns a that is the specified number of months away from the specified .
The that results from adding the specified number of months to the specified .
The to which to add months.
The number of months to add.
The resulting is outside the supported range.
is less than -120000.-or- is greater than 120000.
Returns a that is the specified number of years away from the specified .
The that results from adding the specified number of years to the specified .
The to which to add years.
The number of years to add.
The resulting is outside the supported range.
Gets the list of eras in the class.
An array that consists of a single element having a value that is always the current era.
Returns the day of the month in the specified .
An integer from 1 to 31 that represents the day of the month in the specified .
The to read.
Returns the day of the week in the specified .
A value that represents the day of the week in the specified .
The to read.
Returns the day of the year in the specified .
An integer from 1 to 366 that represents the day of the year in the specified .
The to read.
Returns the number of days in the specified month in the specified year in the specified era.
The number of days in the specified month in the specified year in the specified era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the number of days in the specified year in the specified era.
The number of days in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the era in the specified .
An integer that represents the era in the specified .
The to read.
Calculates the leap month for a specified year and era.
The return value is always 0 because the class does not support the notion of a leap month.
A year.
An era.
Returns the month in the specified .
An integer from 1 to 12 that represents the month in the specified .
The to read.
Returns the number of months in the specified year in the specified era.
The number of months in the specified year in the specified era.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Returns the week of the year that includes the date in the specified .
A 1-based positive integer that represents the week of the year that includes the date in the parameter.
The to read.
One of the values that defines a calendar week.
One of the values that represents the first day of the week.
or is outside the range supported by the calendar.-or- is not a valid value.
Returns the year in the specified .
An integer that represents the year in the specified .
The to read.
Determines whether the specified date in the specified era is a leap day.
true if the specified day is a leap day; otherwise, false.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified month in the specified year in the specified era is a leap month.
This method always returns false, unless overridden by a derived class.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
An integer that represents the year.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.
Gets the latest date and time supported by the class.
The latest date and time supported by the class, which is equivalent to the last moment of December 31, 9999 C.E. in the Gregorian calendar.
Gets the earliest date and time supported by the class.
The earliest date and time supported by the class, which is equivalent to the first moment of January 1, 0001 C.E. in the Gregorian calendar.
Returns a that is set to the specified date and time in the specified era.
The that is set to the specified date and time in the current era.
An integer that represents the year.
An integer from 1 to 12 that represents the month.
An integer from 1 to 31 that represents the day.
An integer from 0 to 23 that represents the hour.
An integer from 0 to 59 that represents the minute.
An integer from 0 to 59 that represents the second.
An integer from 0 to 999 that represents the millisecond.
An integer that represents the era.
is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is outside the range supported by the calendar.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.-or- is outside the range supported by the calendar.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
An integer that contains the four-digit representation of .
A two-digit or four-digit integer that represents the year to convert.
is outside the range supported by the calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than MaxSupportedDateTime.Year.
In a set operation, the current instance is read-only.
Represents the Saudi Hijri (Um Al Qura) calendar.
Initializes a new instance of the class.
Calculates a date that is a specified number of months away from a specified initial date.
The date yielded by adding the number of months specified by the parameter to the date specified by the parameter.
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).
The positive or negative number of months to add.
The resulting date is outside the range supported by the class.
is less than -120,000 or greater than 120,000. -or- is outside the range supported by this calendar.
Calculates a date that is a specified number of years away from a specified initial date.
The date yielded by adding the number of years specified by the parameter to the date specified by the parameter.
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).
The positive or negative number of years to add.
The resulting date is outside the range supported by the class.
is less than -10,000 or greater than 10,000. -or- is outside the range supported by this calendar.
Gets a list of the eras that are supported by the current .
An array that consists of a single element having a value that is .
Calculates the day of the month on which a specified date occurs.
An integer from 1 through 30 that represents the day of the month specified by the parameter.
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).
is outside the range supported by this calendar.
Calculates the day of the week on which a specified date occurs.
A value that represents the day of the week specified by the parameter.
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).
is outside the range supported by this calendar.
Calculates the day of the year on which a specified date occurs.
An integer from 1 through 355 that represents the day of the year specified by the parameter.
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).
is outside the range supported by this calendar.
Calculates the number of days in the specified month of the specified year and era.
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.
A year.
An integer from 1 through 12 that represents a month.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
, , or is outside the range supported by the class.
Calculates the number of days in the specified year of the specified era.
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.
A year.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
or is outside the range supported by the class.
Calculates the era in which a specified date occurs.
Always returns the value.
The date value to read.
is outside the range supported by this calendar.
Calculates the leap month for a specified year and era.
Always 0 because the class does not support leap months.
A year.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
is less than 1318 or greater than 1450.-or- is not UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
Calculates the month in which a specified date occurs.
An integer from 1 through 12 that represents the month in the date specified by the parameter.
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).
is outside the range supported by this calendar.
Calculates the number of months in the specified year of the specified era.
Always 12.
A year.
An era. Specify UmAlQuaraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
is outside the range supported by this calendar.
is outside the range supported by this calendar.
Calculates the year of a date represented by a specified .
An integer that represents the year specified by the parameter.
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).
is outside the range supported by this calendar.
Determines whether the specified date is a leap day.
true if the specified day is a leap day; otherwise, false. The return value is always false because the class does not support leap days.
A year.
An integer from 1 through 12 that represents a month.
An integer from 1 through 30 that represents a day.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
, , , or is outside the range supported by the class.
Determines whether the specified month in the specified year and era is a leap month.
Always false because the class does not support leap months.
A year.
An integer from 1 through 12 that represents a month.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
, , or is outside the range supported by the class.
Determines whether the specified year in the specified era is a leap year.
true if the specified year is a leap year; otherwise, false.
A year.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
or is outside the range supported by the class.
Gets the latest date and time supported by this calendar.
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.
Gets the earliest date and time supported by this calendar.
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.
Returns a that is set to the specified date, time, and era.
The that is set to the specified date and time in the current era.
A year.
An integer from 1 through 12 that represents a month.
An integer from 1 through 29 that represents a day.
An integer from 0 through 23 that represents an hour.
An integer from 0 through 59 that represents a minute.
An integer from 0 through 59 that represents a second.
An integer from 0 through 999 that represents a millisecond.
An era. Specify UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra] or .
, , , or is outside the range supported by the class.-or- is less than zero or greater than 23.-or- is less than zero or greater than 59.-or- is less than zero or greater than 59.-or- is less than zero or greater than 999.
Converts the specified year to a four-digit year by using the property to determine the appropriate century.
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.
A 2-digit year from 0 through 99, or a 4-digit Um Al Qura calendar year from 1318 through 1450.
is outside the range supported by this calendar.
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
The last year of a 100-year range that can be represented by a 2-digit year.
This calendar is read-only.
In a set operation, the Um Al Qura calendar year value is less than 1318 but not 99, or is greater than 1450.