System.Globalization.PersianCalendar Members

The members of System.Globalization.PersianCalendar are listed below.

See Also: Inherited members from System.Globalization.Calendar

Public Constructors

Initializes a new instance of the System.Globalization.PersianCalendar class.

Public Fields

static readonly
PersianEraint (1).

Represents the current era. This field is constant.

Public Properties

[read-only]
override
AlgorithmTypeCalendarAlgorithmType.

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

[read-only]
override
Erasint[].

Gets the list of eras in a System.Globalization.PersianCalendar object.

[read-only]
override
MaxSupportedDateTimeDateTime.

Gets the latest date and time supported by the System.Globalization.PersianCalendar class.

[read-only]
override
MinSupportedDateTimeDateTime.

Gets the earliest date and time supported by the System.Globalization.PersianCalendar class.

override
TwoDigitYearMaxint.

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

Public Methods

override
AddMonths(DateTime, int) : DateTime

Returns a DateTime object that is offset the specified number of months from the specified DateTime object.

override
AddYears(DateTime, int) : DateTime

Returns a DateTime object that is offset the specified number of years from the specified DateTime object.

override
GetDayOfMonth(DateTime) : int

Returns the day of the month in the specified DateTime object.

override
GetDayOfWeek(DateTime) : DayOfWeek

Returns the day of the week in the specified DateTime object.

override
GetDayOfYear(DateTime) : int

Returns the day of the year in the specified DateTime object.

override
GetDaysInMonth(int, int, int) : int

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

override
GetDaysInYear(int, int) : int

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

override
GetEra(DateTime) : int

Returns the era in the specified DateTime object.

override
GetLeapMonth(int, int) : int

Returns the leap month for a specified year and era.

override
GetMonth(DateTime) : int

Returns the month in the specified DateTime object.

override
GetMonthsInYear(int, int) : int

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

override
GetYear(DateTime) : int

Returns the year in the specified DateTime object.

override
IsLeapDay(int, int, int, int) : bool

Determines whether the specified date is a leap day.

override
IsLeapMonth(int, int, int) : bool

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

override
IsLeapYear(int, int) : bool

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

override
ToDateTime(int, int, int, int, int, int, int, int) : DateTime

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

override
ToFourDigitYear(int) : int

Converts the specified year to a four-digit year representation.