C# Class System.Globalization.CCGregorianEraHandler.Era

Mostra file Open project: runefs/Marvin Class Usage Examples

Public Methods

Method 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 method

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. ///
return bool

Era() public method

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. ///
return System.Collections

EraYear() public method

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. ///
return int

GregorianYear() public method

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. ///
return int