C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

date_difference() публичный статический Метод

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. ///
Результат int

day_from_fixed() публичный статический Метод

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. ///
Результат int

day_number() публичный статический Метод

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. ///
Результат int

days_in_year() публичный статический Метод

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. ///
Результат int

days_remaining() публичный статический Метод

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. ///
Результат int

dmy_from_fixed() публичный статический Метод

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.
Результат void

elapsed_days() публичный статический Метод

The method is a helper function.
public static elapsed_days ( int year ) : int
year int An integer specifying the Hebrew year. ///
Результат int

fixed_from_dmy() публичный статический Метод

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. ///
Результат int

is_leap_year() публичный статический Метод

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. ///
Результат bool

last_day_of_month() публичный статический Метод

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. ///
Результат int

last_month_of_year() публичный статический Метод

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. ///
Результат int

long_heshvan() публичный статический Метод

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. ///
Результат bool

month_from_fixed() публичный статический Метод

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. ///
Результат int

my_from_fixed() публичный статический Метод

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.
Результат void

new_year_delay() публичный статический Метод

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. ///
Результат int

short_kislev() публичный статический Метод

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. ///
Результат bool

year_from_fixed() публичный статический Метод

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. ///
Результат int