C# Класс Cats.Helpers.EthiopianDate

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Day int
Month int
Year int

Открытые методы

Метод Описание
CheckLeapYear ( ) : bool

Checks the leap year.

EthiopianDate ( ) : System

Initializes a new instance of the EthiopianDate class.

EthiopianDate ( System.DateTime dateTime ) : System

Initializes a new instance of the EthiopianDate class.

EthiopianDate ( int year, int month, int day ) : System

Initializes a new instance of the EthiopianDate class.

EthiopianDate ( string ddMMyyyy ) : System

Receives format in Ethiopian DD/MM/YYYY

EthiopianDayOfWeek ( int ethiopianYear, int ethiopianMonth, int ethiopianDay ) : DayOfWeek

Ethiopians the day of week.

EthiopianToGregorian ( string ethiopianDateDDMMYYYY ) : System.DateTime

Ethiopians to gregorian.

EthiopianToGregorian ( int hour ) : int

Ethiopians to gregorian.

EthiopianToGregorian ( int &year, int &month, int &day ) : void

Ethiopians to gregorian.

EthiopianToJulian ( int year, int month, int day ) : double

Ethiopians to julian.

GetDayOfWeek ( ) : DayOfWeek

Gets the day of week.

GetDayOfWeekInt ( ) : int

Gets the day of week int.

GetMonthName ( ) : string

Gets the name of the month.

GetMonthName ( int month ) : string
GetMonthNameEN ( ) : string
GetMonthNo ( string month ) : int
GregorianToEthiopian ( System.DateTime gregorianDate ) : string

Gregorians to ethiopian.

GregorianToEthiopian ( int &gregorianYear, int &gregorianMonth, int &gregorianDay ) : void

Gregorians to ethiopian.

GregorianToJulianDate ( System.DateTime date ) : double

Gregorians to julian date.

IsLeapYear ( ) : bool

Determines whether [is leap year].

SetDate ( int gregorianYear, int gregorianMonth, int gregorianDay ) : void

Input is gregorian calendar.

ToDateString ( ) : string

Toes the date string.

ToGregorianDate ( ) : System.DateTime

Toes the gregorian date.

ToLongDateString ( ) : string

Toes the long date string.

Защищенные методы

Метод Описание
CheckLeapYear ( int gregorianYear, int gregorianMonth ) : bool

Checks the leap year.

Приватные методы

Метод Описание
EthiopianToFixed ( int ethiopianYear, int ethiopianMonth, int ethiopianDay ) : int

Ethiopians to fixed.

FixedToEthiopian ( int fixedDate, int &year, int &month, int &day ) : void

Fixes to ethiopian.

FixedToGregorian ( int fixedDate, int &year, int &month, int &day ) : void

Fixeds to gregorian.

GetEthiopianDay ( int gregorianYear, int gregorianMonth, int gregorianDay ) : int

Just get the day in the Ethiopian Calandar.

GetEthiopianYear ( int gregorianYear, int gregorianMonth ) : int

Returns Ethiopian year as an output. Takes the gregorian date as input.

GregToEthiopian ( ) : void

Gregs to ethiopian.

GregorianToEthiopian ( int hour ) : int

Gregorians to ethiopian.

GregorianToFixed ( int gregorianYear, int gregorianMonth, int gregorianDay ) : int

Gregorians to fixed.

GregorianYearFromFixed ( int fixedDate ) : int

Gregorians the year from fixed.

Описание методов

CheckLeapYear() публичный метод

Checks the leap year.
public CheckLeapYear ( ) : bool
Результат bool

CheckLeapYear() защищенный статический метод

Checks the leap year.
protected static CheckLeapYear ( int gregorianYear, int gregorianMonth ) : bool
gregorianYear int The gregorian year.
gregorianMonth int The gregorian month.
Результат bool

EthiopianDate() публичный метод

Initializes a new instance of the EthiopianDate class.
public EthiopianDate ( ) : System
Результат System

EthiopianDate() публичный метод

Initializes a new instance of the EthiopianDate class.
public EthiopianDate ( System.DateTime dateTime ) : System
dateTime System.DateTime The date time.
Результат System

EthiopianDate() публичный метод

Initializes a new instance of the EthiopianDate class.
public EthiopianDate ( int year, int month, int day ) : System
year int The year.
month int The month.
day int The day.
Результат System

EthiopianDate() публичный метод

Receives format in Ethiopian DD/MM/YYYY
public EthiopianDate ( string ddMMyyyy ) : System
ddMMyyyy string
Результат System

EthiopianDayOfWeek() публичный метод

Ethiopians the day of week.
public EthiopianDayOfWeek ( int ethiopianYear, int ethiopianMonth, int ethiopianDay ) : DayOfWeek
ethiopianYear int The ethiopian year.
ethiopianMonth int The ethiopian month.
ethiopianDay int The ethiopian day.
Результат DayOfWeek

EthiopianToGregorian() публичный статический метод

Ethiopians to gregorian.
public static EthiopianToGregorian ( string ethiopianDateDDMMYYYY ) : System.DateTime
ethiopianDateDDMMYYYY string The ethiopian date DDMMYYYY.
Результат System.DateTime

EthiopianToGregorian() публичный статический метод

Ethiopians to gregorian.
public static EthiopianToGregorian ( int hour ) : int
hour int The hour.
Результат int

EthiopianToGregorian() публичный статический метод

Ethiopians to gregorian.
public static EthiopianToGregorian ( int &year, int &month, int &day ) : void
year int The year.
month int The month.
day int The day.
Результат void

EthiopianToJulian() публичный статический метод

Ethiopians to julian.
public static EthiopianToJulian ( int year, int month, int day ) : double
year int The year.
month int The month.
day int The day.
Результат double

GetDayOfWeek() публичный метод

Gets the day of week.
public GetDayOfWeek ( ) : DayOfWeek
Результат DayOfWeek

GetDayOfWeekInt() публичный метод

Gets the day of week int.
public GetDayOfWeekInt ( ) : int
Результат int

GetMonthName() публичный метод

Gets the name of the month.
public GetMonthName ( ) : string
Результат string

GetMonthName() публичный статический метод

public static GetMonthName ( int month ) : string
month int
Результат string

GetMonthNameEN() публичный метод

public GetMonthNameEN ( ) : string
Результат string

GetMonthNo() публичный статический метод

public static GetMonthNo ( string month ) : int
month string
Результат int

GregorianToEthiopian() публичный статический метод

Gregorians to ethiopian.
public static GregorianToEthiopian ( System.DateTime gregorianDate ) : string
gregorianDate System.DateTime The gregorian date.
Результат string

GregorianToEthiopian() публичный статический метод

Gregorians to ethiopian.
public static GregorianToEthiopian ( int &gregorianYear, int &gregorianMonth, int &gregorianDay ) : void
gregorianYear int The gregorian year.
gregorianMonth int The gregorian month.
gregorianDay int The gregorian day.
Результат void

GregorianToJulianDate() публичный статический метод

Gregorians to julian date.
public static GregorianToJulianDate ( System.DateTime date ) : double
date System.DateTime The date.
Результат double

IsLeapYear() публичный метод

Determines whether [is leap year].
public IsLeapYear ( ) : bool
Результат bool

SetDate() публичный метод

Input is gregorian calendar.
public SetDate ( int gregorianYear, int gregorianMonth, int gregorianDay ) : void
gregorianYear int
gregorianMonth int
gregorianDay int
Результат void

ToDateString() публичный метод

Toes the date string.
public ToDateString ( ) : string
Результат string

ToGregorianDate() публичный метод

Toes the gregorian date.
public ToGregorianDate ( ) : System.DateTime
Результат System.DateTime

ToLongDateString() публичный метод

Toes the long date string.
public ToLongDateString ( ) : string
Результат string

Описание свойств

Day публичное свойство

public int Day
Результат int

Month публичное свойство

public int Month
Результат int

Year публичное свойство

public int Year
Результат int