C# Class Cats.Helpers.EthiopianDate

Afficher le fichier Open project: edgecomputing/cats Class Usage Examples

Méthodes publiques

Свойство Type Description
Day int
Month int
Year int

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
CheckLeapYear ( int gregorianYear, int gregorianMonth ) : bool

Checks the leap year.

Private Methods

Méthode Description
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.

Method Details

CheckLeapYear() public méthode

Checks the leap year.
public CheckLeapYear ( ) : bool
Résultat bool

CheckLeapYear() protected static méthode

Checks the leap year.
protected static CheckLeapYear ( int gregorianYear, int gregorianMonth ) : bool
gregorianYear int The gregorian year.
gregorianMonth int The gregorian month.
Résultat bool

EthiopianDate() public méthode

Initializes a new instance of the EthiopianDate class.
public EthiopianDate ( ) : System
Résultat System

EthiopianDate() public méthode

Initializes a new instance of the EthiopianDate class.
public EthiopianDate ( System.DateTime dateTime ) : System
dateTime System.DateTime The date time.
Résultat System

EthiopianDate() public méthode

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.
Résultat System

EthiopianDate() public méthode

Receives format in Ethiopian DD/MM/YYYY
public EthiopianDate ( string ddMMyyyy ) : System
ddMMyyyy string
Résultat System

EthiopianDayOfWeek() public méthode

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.
Résultat DayOfWeek

EthiopianToGregorian() public static méthode

Ethiopians to gregorian.
public static EthiopianToGregorian ( string ethiopianDateDDMMYYYY ) : System.DateTime
ethiopianDateDDMMYYYY string The ethiopian date DDMMYYYY.
Résultat System.DateTime

EthiopianToGregorian() public static méthode

Ethiopians to gregorian.
public static EthiopianToGregorian ( int hour ) : int
hour int The hour.
Résultat int

EthiopianToGregorian() public static méthode

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.
Résultat void

EthiopianToJulian() public static méthode

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.
Résultat double

GetDayOfWeek() public méthode

Gets the day of week.
public GetDayOfWeek ( ) : DayOfWeek
Résultat DayOfWeek

GetDayOfWeekInt() public méthode

Gets the day of week int.
public GetDayOfWeekInt ( ) : int
Résultat int

GetMonthName() public méthode

Gets the name of the month.
public GetMonthName ( ) : string
Résultat string

GetMonthName() public static méthode

public static GetMonthName ( int month ) : string
month int
Résultat string

GetMonthNameEN() public méthode

public GetMonthNameEN ( ) : string
Résultat string

GetMonthNo() public static méthode

public static GetMonthNo ( string month ) : int
month string
Résultat int

GregorianToEthiopian() public static méthode

Gregorians to ethiopian.
public static GregorianToEthiopian ( System.DateTime gregorianDate ) : string
gregorianDate System.DateTime The gregorian date.
Résultat string

GregorianToEthiopian() public static méthode

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.
Résultat void

GregorianToJulianDate() public static méthode

Gregorians to julian date.
public static GregorianToJulianDate ( System.DateTime date ) : double
date System.DateTime The date.
Résultat double

IsLeapYear() public méthode

Determines whether [is leap year].
public IsLeapYear ( ) : bool
Résultat bool

SetDate() public méthode

Input is gregorian calendar.
public SetDate ( int gregorianYear, int gregorianMonth, int gregorianDay ) : void
gregorianYear int
gregorianMonth int
gregorianDay int
Résultat void

ToDateString() public méthode

Toes the date string.
public ToDateString ( ) : string
Résultat string

ToGregorianDate() public méthode

Toes the gregorian date.
public ToGregorianDate ( ) : System.DateTime
Résultat System.DateTime

ToLongDateString() public méthode

Toes the long date string.
public ToLongDateString ( ) : string
Résultat string

Property Details

Day public_oe property

public int Day
Résultat int

Month public_oe property

public int Month
Résultat int

Year public_oe property

public int Year
Résultat int