JewcalGetHebrewMonthName
The JewcalGetHebrewMonthName function gets the name of
the Hebrew month corresponding to the month number retrieved by
JewcalGregorianDateToHebrewDate.
DWORD JewcalGetHebrewMonthName(UINT uMonth, UINT uYear,
LPTSTR lpString, UINT cbMax,
LPTSTR lpLanguage,
LPTSTR lpNameFile);
Parameters
uMonth
|
Specifies the Hebrew month.
|
uMonth
|
Specifies the Hebrew year.
|
lpString
|
Must point to a string buffer which will contain the name of the
Hebrew month after execution of this function.
|
cbMax
|
Must contain the size of the buffer lpString in characters.
|
lpLanguage
|
If it is not NULL, it must point to a language defined in NAMES.TXT.
If it is NULL, the entry with no language, that means without a dot,
is retrieved if present (by default, not).
|
lpNameFile
|
If it is not NULL, it must point to the filename with full path of
the NAMES.TXT file.
If it is NULL, the NAMES.TXT file is assumed to have its
original name and present in the same directory where JEWCAL.DLL
is located.
File format of NAMES.TXT
|
Return values
If the function succeeds, the return value is JEWCAL_ERROR_OK.
If the function fails, the return value is other than JEWCAL_ERROR_OK.
The function fails if the passed Hebrew month is invalid, if the
Hebrew year is out of range or if the buffer is too small.
Remarks
The assignment of the Hebrew month number to its name is
1 | Nissan |
2 | Iyyar |
3 | Sivan |
4 | Tammuz |
5 | Av |
6 | Elul |
7 | Tishri |
8 | Heshvan |
9 | Kislev |
10 | Tevet |
11 | Shevat |
12 | Adar (in non-leap years) or Adar I (in leap years) |
13 | Adar II (in leap years) |
See Also
JewcalGetHebrewDateToGregorianDate,
JewcalGetGregorianDateToHebrewDate