C# 클래스 Cats.Helpers.EthiopianDate

파일 보기 프로젝트 열기: edgecomputing/cats 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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