C# Class System.Globalization.CCHebrewCalendar

A class encapsulating the functions of the Hebrew calendar as static methods.

This class is not compatible to T:System.Globalization.HebrewCalendar.

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

Méthodes publiques

Méthode Description
date_difference ( int dayA, int monthA, int yearA, int dayB, int monthB, int yearB ) : int

The method computes the difference between two Hebrew dates.

day_from_fixed ( int date ) : int

A method computing the day of the month from a fixed day number.

day_number ( int day, int month, int year ) : int

The method computes the number of the day in the year from a Hebrew date.

days_in_year ( int year ) : int

The functions gives the number of days in the specified Hebrew year.

days_remaining ( int day, int month, int year ) : int

The method computes the days remaining in the given Hebrew year from a Hebrew date.

dmy_from_fixed ( int &day, int &month, int &year, int date ) : void

The method computes the Hebrew year, month, and day from a fixed day number.

elapsed_days ( int year ) : int

The method is a helper function.

fixed_from_dmy ( int day, int month, int year ) : int

The method returns the fixed day number of the given Hebrew date.

is_leap_year ( int year ) : bool

The method tells whether the year is a leap year.

last_day_of_month ( int month, int year ) : int

The method computes the last day of month (nummer of days in a month) of the given Hebrew year.

last_month_of_year ( int year ) : int

The Method gives the number of the last month in a year, which is equal with the number of month in a Hebrew year.

long_heshvan ( int year ) : bool

The functions checks whether the month Heshvan is a long one in the given Hebrew year.

month_from_fixed ( int date ) : int

A method computing the Hebrew month from a fixed day number.

my_from_fixed ( int &month, int &year, int date ) : void

The method computes the Hebrew year and month from a fixed day number.

new_year_delay ( int year ) : int

A method computing the delay of new year for the given Hebrew year.

short_kislev ( int year ) : bool

The functions checks whether the month Kislev is a short one in the given Hebrew year.

year_from_fixed ( int date ) : int

The method computes the Hebrew year from a fixed day number.

Method Details

date_difference() public static méthode

The method computes the difference between two Hebrew dates.
public static date_difference ( int dayA, int monthA, int yearA, int dayB, int monthB, int yearB ) : int
dayA int The integer parameter gives the day of month /// of the first date. ///
monthA int The integer parameter gives the Hebrew /// month of the first date. ///
yearA int The integer parameter gives the Hebrew /// year of the first date. ///
dayB int The integer parameter gives the day of month /// of the second date. ///
monthB int The integer parameter gives the Hebrew /// month of the second date. ///
yearB int The integer parameter gives the Hebrew /// year of the second date. ///
Résultat int

day_from_fixed() public static méthode

A method computing the day of the month from a fixed day number.
public static day_from_fixed ( int date ) : int
date int An integer specifying the fixed day number. ///
Résultat int

day_number() public static méthode

The method computes the number of the day in the year from a Hebrew date.
public static day_number ( int day, int month, int year ) : int
day int An integer representing the day of the month, /// counting from 1. ///
month int An integer representing the month in the /// Hebrew year. ///
year int An integer representing the Hebrew year. ///
Résultat int

days_in_year() public static méthode

The functions gives the number of days in the specified Hebrew year.
public static days_in_year ( int year ) : int
year int An integer that gives the Hebrew year. ///
Résultat int

days_remaining() public static méthode

The method computes the days remaining in the given Hebrew year from a Hebrew date.
public static days_remaining ( int day, int month, int year ) : int
day int An integer representing the day of the month, /// counting from 1. ///
month int An integer representing the month in the /// Hebrew year. ///
year int An integer representing the Hebrew year. ///
Résultat int

dmy_from_fixed() public static méthode

The method computes the Hebrew year, month, and day from a fixed day number.
public static dmy_from_fixed ( int &day, int &month, int &year, int date ) : void
day int The output value returning the day of the /// month. ///
month int The output value giving the Hebrew month. ///
year int The output value giving the Hebrew year. ///
date int An integer value specifying the fixed day /// number.
Résultat void

elapsed_days() public static méthode

The method is a helper function.
public static elapsed_days ( int year ) : int
year int An integer specifying the Hebrew year. ///
Résultat int

fixed_from_dmy() public static méthode

The method returns the fixed day number of the given Hebrew date.
public static fixed_from_dmy ( int day, int month, int year ) : int
day int An integer representing the day of the month, /// counting from 1. ///
month int An integer representing the month in the /// Hebrew year. ///
year int An integer representing the Hebrew year. /// Non-positive values are allowed also. ///
Résultat int

is_leap_year() public static méthode

The method tells whether the year is a leap year.
public static is_leap_year ( int year ) : bool
year int An integer representing the Hebrew year. ///
Résultat bool

last_day_of_month() public static méthode

The method computes the last day of month (nummer of days in a month) of the given Hebrew year.
/// The exception is thrown if month not between One and Thirteen. ///
public static last_day_of_month ( int month, int year ) : int
month int The Hebrew month, allowed value between /// One and Thirteen. ///
year int An integer that gives the Hebrew year. ///
Résultat int

last_month_of_year() public static méthode

The Method gives the number of the last month in a year, which is equal with the number of month in a Hebrew year.
public static last_month_of_year ( int year ) : int
year int An integer representing the Hebrew year. ///
Résultat int

long_heshvan() public static méthode

The functions checks whether the month Heshvan is a long one in the given Hebrew year.
public static long_heshvan ( int year ) : bool
year int An integer that gives the Hebrew year. ///
Résultat bool

month_from_fixed() public static méthode

A method computing the Hebrew month from a fixed day number.
public static month_from_fixed ( int date ) : int
date int An integer specifying the fixed day number. ///
Résultat int

my_from_fixed() public static méthode

The method computes the Hebrew year and month from a fixed day number.
public static my_from_fixed ( int &month, int &year, int date ) : void
month int The output value giving the Hebrew month. ///
year int The output value giving the Hebrew year. ///
date int An integer value specifying the fixed day /// number.
Résultat void

new_year_delay() public static méthode

A method computing the delay of new year for the given Hebrew year.
public static new_year_delay ( int year ) : int
year int An integer that gives the Hebrew year. ///
Résultat int

short_kislev() public static méthode

The functions checks whether the month Kislev is a short one in the given Hebrew year.
public static short_kislev ( int year ) : bool
year int An integer that gives the Hebrew year. ///
Résultat bool

year_from_fixed() public static méthode

The method computes the Hebrew year from a fixed day number.
public static year_from_fixed ( int date ) : int
date int The fixed day number. ///
Résultat int