C# Class System.Globalization.CCGregorianEraHandler.Era

Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Méthodes publiques

Méthode Description
Covers ( int date ) : bool

This function checks wether the given fixed day number is ion the time span of the era.

Era ( int nr, int start, int end ) : System.Collections

This constructor creates the era structure.

EraYear ( int &era, int date ) : int

This function returns the year of the era and sets the era in an output parameter.

GregorianYear ( int year ) : int

This method computes the Gregorian year from the year of this era.

Method Details

Covers() public méthode

This function checks wether the given fixed day number is ion the time span of the era.
public Covers ( int date ) : bool
date int An integer giving the fixed day /// number. ///
Résultat bool

Era() public méthode

This constructor creates the era structure.
public Era ( int nr, int start, int end ) : System.Collections
nr int The integer number of the era. ///
start int The fixed day number defining the /// first day of the era. ///
end int The fixed day number that defines the /// last day of the era. ///
Résultat System.Collections

EraYear() public méthode

This function returns the year of the era and sets the era in an output parameter.
/// The exception is thrown if date is outside of the time /// span of the era. ///
public EraYear ( int &era, int date ) : int
era int An output parameter returning the /// era number. ///
date int An integer giving the fixed day /// number. ///
Résultat int

GregorianYear() public méthode

This method computes the Gregorian year from the year of this era.
/// The exception is thrown if the year isn't valid in this /// era. ///
public GregorianYear ( int year ) : int
year int An integer giving the year in the /// era. ///
Résultat int