Table of Contents

Class RightToLeftCultureCalendar

Namespace
Oqtane.Infrastructure
Assembly
Oqtane.Server.dll
public class RightToLeftCultureCalendar : PersianCalendar
Inheritance
object
Calendar
PersianCalendar
RightToLeftCultureCalendar

Methods

GetDayOfMonth(DateTime)

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

public override int GetDayOfMonth(DateTime time)

Parameters

time DateTime

The System.DateTime to read.

Returns

int

An integer from 1 through 31 that represents the day of the month in the specified System.DateTime object.

Exceptions

ArgumentOutOfRangeException

The time parameter represents a date less than System.Globalization.PersianCalendar.MinSupportedDateTime or greater than System.Globalization.PersianCalendar.MaxSupportedDateTime.

GetDayOfWeek(DateTime)

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

public override DayOfWeek GetDayOfWeek(DateTime time)

Parameters

time DateTime

The System.DateTime to read.

Returns

DayOfWeek

A System.DayOfWeek value that represents the day of the week in the specified System.DateTime object.

GetDayOfYear(DateTime)

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

public override int GetDayOfYear(DateTime time)

Parameters

time DateTime

The System.DateTime to read.

Returns

int

An integer from 1 through 366 that represents the day of the year in the specified System.DateTime object.

Exceptions

ArgumentOutOfRangeException

The time parameter represents a date less than System.Globalization.PersianCalendar.MinSupportedDateTime or greater than System.Globalization.PersianCalendar.MaxSupportedDateTime.

GetMonth(DateTime)

Returns the month in the specified System.DateTime object.

public override int GetMonth(DateTime time)

Parameters

time DateTime

The System.DateTime to read.

Returns

int

An integer from 1 through 12 that represents the month in the specified System.DateTime object.

Exceptions

ArgumentOutOfRangeException

The time parameter represents a date less than System.Globalization.PersianCalendar.MinSupportedDateTime or greater than System.Globalization.PersianCalendar.MaxSupportedDateTime.

GetYear(DateTime)

Returns the year in the specified System.DateTime object.

public override int GetYear(DateTime time)

Parameters

time DateTime

The System.DateTime to read.

Returns

int

An integer from 1 through 9378 that represents the year in the specified System.DateTime.

Exceptions

ArgumentOutOfRangeException

The time parameter represents a date less than System.Globalization.PersianCalendar.MinSupportedDateTime or greater than System.Globalization.PersianCalendar.MaxSupportedDateTime.